From 1f9a1bd3b7bfc223c0caddbcd869b287f84c76e4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 25 Nov 2015 21:13:12 +0100 Subject: typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/slibc-human/humansize.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/slibc-human') diff --git a/src/slibc-human/humansize.c b/src/slibc-human/humansize.c index ecebd26..abf02b3 100644 --- a/src/slibc-human/humansize.c +++ b/src/slibc-human/humansize.c @@ -159,7 +159,7 @@ static char* humansize_round(char* buffer, size_t bufsize, enum humansize_mode m total += ((double)values[words]) / dividend, dividend *= (double)div; /* Ensure the buffer is large enougth. */ - SNPRINTF(NULL, 0, "%.*lf%\zn", (detail < 0 ? 0 : detail), (double)total, (ssize_t*)&n); + SNPRINTF(NULL, 0, "%.*lf%zn", (detail < 0 ? 0 : detail), (double)total, (ssize_t*)&n); if (n + strlen(point) + 3 - (detail < 0 ? 0 : 1) > bufsize / sizeof(char)) { bufsize = n + strlen(point) + 3 - (detail < 0 ? 0 : 1); @@ -201,7 +201,7 @@ static char* humansize_round(char* buffer, size_t bufsize, enum humansize_mode m while (det--) div *= 10; i += div; - SPRINTF(buffer, "%zu%\zn", i, (ssize_t*)&n); + SPRINTF(buffer, "%zu%zn", i, (ssize_t*)&n); } } -- cgit v1.2.3-70-g09d2