tJust check p[0] - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 97db3dcc86b5d78dde1a752f2c141f322d4a77f2
 (DIR) parent 9846a8d350503a8aa40388e7f88e952e3582765b
 (HTM) Author: sin <sin@2f30.org>
       Date:   Mon, 22 Sep 2014 12:11:34 +0100
       
       Just check p[0]
       
       Diffstat:
         M ratox.c                             |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/ratox.c b/ratox.c
       t@@ -562,7 +562,7 @@ readpass(void)
                        perror("readpassphrase");
                        exit(EXIT_FAILURE);
                }
       -        if (strlen(p) == 0)
       +        if (p[0] == '\0')
                        return -1;
                passphrase = malloc(strlen(p)); /* not null-terminated */
                if (!passphrase) {