projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shift translation for DOS too
[dosdemo]
/
src
/
treestor.c
diff --git
a/src/treestor.c
b/src/treestor.c
index
43c99ac
..
91adfec
100644
(file)
--- a/
src/treestor.c
+++ b/
src/treestor.c
@@
-105,7
+105,7
@@
fail:
{ \
static char scrap[128]; \
char *str; \
{ \
static char scrap[128]; \
char *str; \
- int sz = snprintf(scrap, sizeof scrap, fmt, x); \
+ int sz = sprintf(scrap, fmt, x); \
if(!(str = malloc(sz + 1))) return 0; \
sprintf(str, fmt, x); \
return str; \
if(!(str = malloc(sz + 1))) return 0; \
sprintf(str, fmt, x); \
return str; \