Manageability

This commit is contained in:
Sara Golemon 2003-09-18 17:51:55 +00:00
parent 17c3560d33
commit 0a3bc21c5c

View 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;