diff options
Diffstat (limited to 'babeld/util.c')
| -rw-r--r-- | babeld/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/babeld/util.c b/babeld/util.c index 7dff11d124..4a3ecace0c 100644 --- a/babeld/util.c +++ b/babeld/util.c @@ -303,7 +303,7 @@ format_thousands(unsigned int value) static char buf[4][15]; static int i = 0; i = (i + 1) % 4; - snprintf(buf[i], 15, "%d.%.3d", value / 1000, value % 1000); + snprintf(buf[i], 15, "%u.%.3u", value / 1000, value % 1000); return buf[i]; } |
