]> granicus.if.org Git - php/commitdiff
Manageability
authorSara Golemon <pollita@php.net>
Thu, 18 Sep 2003 17:51:55 +0000 (17:51 +0000)
committerSara Golemon <pollita@php.net>
Thu, 18 Sep 2003 17:51:55 +0000 (17:51 +0000)
ext/ftp/ftp.c

index 152b678b6b676c58ffda2a51a59897c7d5f9d859..cc15b579f4a35f2d71f35fbe365e6923edf9f2db 100644 (file)
@@ -616,7 +616,7 @@ ftp_alloc(ftpbuf_t *ftp, const int size, char **response)
                return 0;
        }
 
-       snprintf(buffer, 64, "%d", size);
+       snprintf(buffer, sizeof(buffer) - 1, "%d", size);
 
        if (!ftp_putcmd(ftp, "ALLO", buffer)) {
                return 0;