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_daemon.c
diff --git
a/src/rrd_daemon.c
b/src/rrd_daemon.c
index
0610d38
..
0ea5bf7
100644
(file)
--- a/
src/rrd_daemon.c
+++ b/
src/rrd_daemon.c
@@
-599,7
+599,7
@@
static int send_response (listen_socket_t *sock, response_code rc,
else
lines = -1;
- rclen = s
printf(
buffer, "%d ", lines);
+ rclen = s
nprintf(buffer, sizeof
buffer, "%d ", lines);
va_start(argp, fmt);
#ifdef HAVE_VSNPRINTF
len = vsnprintf(buffer+rclen, sizeof(buffer)-rclen, fmt, argp);