]> 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 659524da7c14ef72ca005cc76ba0cb7c57d0d21f..8075f1c1c1cba5eef1cc6b71b7e3e01cb9418495 100644 (file)
--- a/cmds.h
+++ b/cmds.h
@@ -2,7 +2,7 @@
     Copyright (C) 1999-2000 Steinar H. Gunderson
 
     This program is is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License, version 2 if the
+    it under the terms of the GNU General Public License, version 2 of the
     License as published by the Free Software Foundation.
 
     This program is distributed in the hope that it will be useful,
@@ -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);