From cce7cdc5a12212dc134f3608a5a82a2cb83d2041 Mon Sep 17 00:00:00 2001
From: Dirk Engling <erdgeist@erdgeist.org>
Date: Mon, 19 Jan 2015 13:11:13 +0100
Subject: Username checks need to terminate at 0, not at strlen(g_nick)

---
 vchat-user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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( ) {
 
 int own_nick_check( char *nick ) {
   if( !g_nick ) return -1;
-  return !strncasecmp(g_nick,nick,strlen(g_nick) );
+  return !strcasecmp(g_nick,nick);
 }
 
 int own_channel_get( ) {
-- 
cgit v1.2.3