From efad70c2cc2edd8416a18ea6daf06f8627d1d68d Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 27 Feb 2007 03:28:17 +0000 Subject: snprintf() -> slprintf() --- ext/ftp/ftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/ftp') diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index e98fbb20a8..666f23c582 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -1102,13 +1102,13 @@ ftp_putcmd(ftpbuf_t *ftp, const char *cmd, const char *args) if (strlen(cmd) + strlen(args) + 4 > FTP_BUFSIZE) { return 0; } - size = snprintf(ftp->outbuf, sizeof(ftp->outbuf), "%s %s\r\n", cmd, args); + size = slprintf(ftp->outbuf, sizeof(ftp->outbuf), "%s %s\r\n", cmd, args); } else { /* "cmd\r\n\0" */ if (strlen(cmd) + 3 > FTP_BUFSIZE) { return 0; } - size = snprintf(ftp->outbuf, sizeof(ftp->outbuf), "%s\r\n", cmd); + size = slprintf(ftp->outbuf, sizeof(ftp->outbuf), "%s\r\n", cmd); } data = ftp->outbuf; -- cgit v1.2.1