aboutsummaryrefslogtreecommitdiffstats
path: root/src/slibc-human/humansize.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-11-25 21:13:12 +0100
committerMattias Andrée <maandree@operamail.com>2015-11-25 21:13:12 +0100
commit1f9a1bd3b7bfc223c0caddbcd869b287f84c76e4 (patch)
tree71f18049e796f64a959b6231d915806f22ae69cd /src/slibc-human/humansize.c
parenttodo: ... and ptrdiff_t (diff)
downloadslibc-1f9a1bd3b7bfc223c0caddbcd869b287f84c76e4.tar.gz
slibc-1f9a1bd3b7bfc223c0caddbcd869b287f84c76e4.tar.bz2
slibc-1f9a1bd3b7bfc223c0caddbcd869b287f84c76e4.tar.xz
typo
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/slibc-human/humansize.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}