aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-06-12 07:44:22 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-06-12 07:44:22 +0000
commit17b784381ec4b0739070e6ce7237ddb58d8a5381 (patch)
tree5f10f183296b47ca6b53e3e04a8214dfda77dfea /lib
parente3031fddb9d90ea00fe95b3da6225ccffdc13b41 (diff)
kris@freebsd.org fixed a few bad format strings
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index b9bf38f34..0347e0ccd 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1070,13 +1070,13 @@ CURLcode ftp_use_port(struct connectdata *conn)
}
freeaddrinfo(res);
if (portsock < 0) {
- failf(data, strerror(errno));
+ failf(data, "%s", strerror(errno));
return CURLE_FTP_PORT_FAILED;
}
sslen = sizeof(ss);
if (getsockname(portsock, sa, &sslen) < 0) {
- failf(data, strerror(errno));
+ failf(data, "%s", strerror(errno));
return CURLE_FTP_PORT_FAILED;
}
@@ -1373,7 +1373,7 @@ CURLcode ftp_use_pasv(struct connectdata *conn)
for (modeoff = (data->set.ftp_use_epsv?0:1);
mode[modeoff]; modeoff++) {
- result = Curl_ftpsendf(conn, mode[modeoff]);
+ result = Curl_ftpsendf(conn, "%s", mode[modeoff]);
if(result)
return result;
nread = Curl_GetFTPResponse(buf, conn, &ftpcode);