fix a compiler warning

This commit is contained in:
Daniel Stenberg
2009-03-15 22:40:11 +00:00
parent f56b8ef605
commit 0812744424

View File

@@ -70,7 +70,8 @@ libssh2_scp_recv(LIBSSH2_SESSION * session, const char *path, struct stat * sb)
}
/* sprintf() is fine here since we allocated a large enough buffer */
sprintf(session->scpRecv_command, "scp -%sf %s", sb?"p":"", path);
sprintf((char *)session->scpRecv_command, "scp -%sf %s", sb?"p":"",
path);
_libssh2_debug(session, LIBSSH2_DBG_SCP,
"Opening channel for SCP receive");