Printf related fixes.

This commit is contained in:
Rosen Penev authored and Simon Kelley committed 2017-06-27 22:29:51 +01:00
1 parent 50a2841d34
commit cbd29e5da8
7 files changed
+16 -14

No files matched your search

+1 -1
View File
@@ -734,7 +734,7 @@ static ssize_t get_block(char *packet, struct tftp_transfer *transfer)
if (transfer->opt_blocksize)
{
p += (sprintf(p, "blksize") + 1);
p += (sprintf(p, "%d", transfer->blocksize) + 1);
p += (sprintf(p, "%u", transfer->blocksize) + 1);
}
if (transfer->opt_transize)
{