From 0a3bc21c5c55639c5064d1bf34925088d09fecf6 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Thu, 18 Sep 2003 17:51:55 +0000 Subject: [PATCH] Manageability --- ext/ftp/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1