diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2015-01-19 13:11:13 +0100 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2015-01-19 13:11:13 +0100 |
commit | cce7cdc5a12212dc134f3608a5a82a2cb83d2041 (patch) | |
tree | 2eb352ab8fb9928d578a536fe14289240bf628a5 | |
parent | 1d4c7b4858f467289b3bf5592b772a9526abe0c3 (diff) |
Username checks need to terminate at 0, not at strlen(g_nick)
-rwxr-xr-x | vchat-user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vchat-user.c b/vchat-user.c index 7280672..881a3cf 100755 --- a/vchat-user.c +++ b/vchat-user.c | |||
@@ -85,7 +85,7 @@ char const *own_nick_get( ) { | |||
85 | 85 | ||
86 | int own_nick_check( char *nick ) { | 86 | int own_nick_check( char *nick ) { |
87 | if( !g_nick ) return -1; | 87 | if( !g_nick ) return -1; |
88 | return !strncasecmp(g_nick,nick,strlen(g_nick) ); | 88 | return !strcasecmp(g_nick,nick); |
89 | } | 89 | } |
90 | 90 | ||
91 | int own_channel_get( ) { | 91 | int own_channel_get( ) { |