projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix bugs in [v]snprintf usage
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index f0ad01936a33bf136dc1bc7f7b54d4d9a4657626..dfc5a8fe981b12c2a55bcf0eeada5772e3d9d03f 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-627,7
+627,7
@@
static char *to_kmg(unsigned int val)
p++;
} while (*p);
- snprintf(buf, 3
1
, "%u%c", val, *p);
+ snprintf(buf, 3
2
, "%u%c", val, *p);
return buf;
}