Fix size calculation. thanks clang.
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 1 Jan 2015 15:28:27 +0000 (16:28 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 1 Jan 2015 15:28:27 +0000 (16:28 +0100)
citadel/netconfig.c

index d2a39c6c63e11cd1b2e1d02af343c4b631b6e9b1..3161b11003bbff3ad471401f3536b179fc459f22 100644 (file)
@@ -926,7 +926,7 @@ void cmd_netp(char *cmdbuf)
                lens[0] = strlen(CCC->cs_addr);
                
                strs[1] = "SRV_UNKNOWN";
-               lens[1] = sizeof("SRV_UNKNOWN" - 1);
+               lens[1] = sizeof("SRV_UNKNOWN") - 1;
 
                CtdlAideFPMessage(
                        err_buf,
@@ -953,7 +953,7 @@ void cmd_netp(char *cmdbuf)
                lens[0] = strlen(CCC->cs_addr);
                
                strs[1] = "SRV_PW";
-               lens[1] = sizeof("SRV_PW" - 1);
+               lens[1] = sizeof("SRV_PW") - 1;
 
                CtdlAideFPMessage(
                        err_buf,