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

@@ -882,7 +882,7 @@ static struct server *add_rev4(struct in_addr addr, int msize)
switch (msize)
{
case 32:
p += sprintf(p, "%d.", a & 0xff);
p += sprintf(p, "%u.", a & 0xff);
/* fall through */
case 24:
p += sprintf(p, "%d.", (a >> 8) & 0xff);