summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2015-01-19 13:11:13 +0100
committerDirk Engling <erdgeist@erdgeist.org>2015-01-19 13:11:13 +0100
commitcce7cdc5a12212dc134f3608a5a82a2cb83d2041 (patch)
tree2eb352ab8fb9928d578a536fe14289240bf628a5
parent1d4c7b4858f467289b3bf5592b772a9526abe0c3 (diff)
Username checks need to terminate at 0, not at strlen(g_nick)
-rwxr-xr-xvchat-user.c2
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
86int own_nick_check( char *nick ) { 86int 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
91int own_channel_get( ) { 91int own_channel_get( ) {