diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2007-02-27 03:28:17 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2007-02-27 03:28:17 +0000 |
| commit | efad70c2cc2edd8416a18ea6daf06f8627d1d68d (patch) | |
| tree | 0a59c0e22bb3b224433600d86b8430276ed87b45 /ext/ftp | |
| parent | cc04404b28d10481f63be986fe815de1fe31088b (diff) | |
| download | php-git-efad70c2cc2edd8416a18ea6daf06f8627d1d68d.tar.gz | |
snprintf() -> slprintf()
Diffstat (limited to 'ext/ftp')
| -rw-r--r-- | ext/ftp/ftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
