]> code.citadel.org Git - citadel.git/blobdiff - citadel/sendcommand.c
* more buffer size stuff
[citadel.git] / citadel / sendcommand.c
index 061d0b44fab62cbd4c87e0f5b3c5799b2d98e04f..3a04baeaf8ef4dffe43cfa8a0933af117f98c4ec 100644 (file)
@@ -164,7 +164,7 @@ int main(int argc, char **argv)
                }
        } else if (buf[0] == '4') {
                do {
-                       if (fgets(buf, 255, stdin) == NULL)
+                       if (fgets(buf, sizeof buf, stdin) == NULL)
                                strcpy(buf, "000");
                        if (strlen(buf) > 0)
                                if (buf[strlen(buf) - 1] == '\n')