CodyCam: Use "%s" instead of printf'ing a buffer directly.

Fixes #16375.
This commit is contained in:
Augustin Cavalier 2020-07-07 20:44:08 -04:00
parent f7362b6fd0
commit 21e213d3b0

View File

@ -83,7 +83,7 @@ FtpClient::ListDirContents(string& listing)
memset(buf, 0, sizeof(buf));
numRead = fData->Receive(buf, sizeof(buf) - 1);
listing += buf;
printf(buf);
printf("%s", buf);
}
if (_GetReply(replyString, code, codeType)) {
if (codeType <= 2)