]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
remove null termination.
authorAndre <maan@p133.(none)>
Sat, 15 Apr 2006 17:50:59 +0000 (19:50 +0200)
committerAndre <maan@p133.(none)>
Sat, 15 Apr 2006 17:50:59 +0000 (19:50 +0200)
The previous patch missed to remove a line. Quite a serious mistake as
'ret' no longer contains the length of the message but the user id..

audiod.c

index b0f9f786932be2e44e5c87bb9411345746e16ff1..e1bcbd12c4e8ca365ecb12162905c1ea892173ce 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -1443,7 +1443,6 @@ static int handle_connect(void)
        if (ret < 0)
                goto out;
        PARA_INFO_LOG("connection from user %i\n",  ret);
        if (ret < 0)
                goto out;
        PARA_INFO_LOG("connection from user %i\n",  ret);
-       buf[ret] = '\0';
        ret = check_perms(ret);
        if (ret < 0)
                goto out;
        ret = check_perms(ret);
        if (ret < 0)
                goto out;