]> git.sesse.net Git - betaftpd/commitdiff
Fixed a security problem where the custom snprintf() would always be used. Thanks... master
authorsgunderson <sgunderson>
Sat, 1 Nov 2003 12:32:27 +0000 (12:32 +0000)
committersgunderson <sgunderson>
Sat, 1 Nov 2003 12:32:27 +0000 (12:32 +0000)
ftpd.c

diff --git a/ftpd.c b/ftpd.c
index 7d52ba3d234da84a6f699aecc1aced981faf1d56..f013777ec65dcb39a3660f5234baa79a143fe005 100644 (file)
--- a/ftpd.c
+++ b/ftpd.c
@@ -215,7 +215,7 @@ int sendfile_supported = 1;
  */
 int time_to_check = 1;
 
-#ifndef HAVE_SPRINTF
+#ifndef HAVE_SNPRINTF
 /*
  * snprintf(): snprintf() replacement for systems that miss it. Note
  *             that this implementation does _not_ necessarily protect