]> git.sesse.net Git - betaftpd/blobdiff - cmds.h
Fixed a security problem where the custom snprintf() would always be used. Thanks...
[betaftpd] / cmds.h
diff --git a/cmds.h b/cmds.h
index 6b5a386c91a9547e82455c1a7178f3a082ca8d74..8075f1c1c1cba5eef1cc6b71b7e3e01cb9418495 100644 (file)
--- a/cmds.h
+++ b/cmds.h
@@ -54,7 +54,7 @@
        }
 #endif
 
-#define CMD_PROTO(cmd) int cmd_ ## cmd ## (struct conn * const c)
+#define CMD_PROTO(cmd) void cmd_ ## cmd (struct conn * const c)
 
 int do_chdir(struct conn * const c, const char * const newd);
 CMD_PROTO(user);