mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
Manageability
This commit is contained in:
parent
17c3560d33
commit
0a3bc21c5c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user