Printf related fixes.

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

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)
{