diff options
author | Sara Golemon <pollita@php.net> | 2003-09-18 17:51:55 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2003-09-18 17:51:55 +0000 |
commit | 0a3bc21c5c55639c5064d1bf34925088d09fecf6 (patch) | |
tree | 05dbb60c0bbe1db979dfa8a767c0fb7e9f411f4b /ext/ftp | |
parent | 17c3560d33f567315a53299cc9cbbceb7edad447 (diff) | |
download | php-git-0a3bc21c5c55639c5064d1bf34925088d09fecf6.tar.gz |
Manageability
Diffstat (limited to 'ext/ftp')
-rw-r--r-- | ext/ftp/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 152b678b6b..cc15b579f4 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -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; |