projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use snprintf, strdup, ... where possible to make for safer operation -- Martin Pelikan
[rrdtool.git]
/
src
/
rrd_rpncalc.c
diff --git
a/src/rrd_rpncalc.c
b/src/rrd_rpncalc.c
index
0677b30
..
ab01c8a
100644
(file)
--- a/
src/rrd_rpncalc.c
+++ b/
src/rrd_rpncalc.c
@@
-117,7
+117,7
@@
void rpn_compact2str(
#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
_itoa(rpnc[i].val, buffer, 10);
#else
- s
printf(
buffer, "%d", rpnc[i].val);
+ s
nprintf(buffer, sizeof
buffer, "%d", rpnc[i].val);
#endif
add_op(OP_NUMBER, buffer)
}