projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2378 from cramertj/grpc-meta
[collectd.git]
/
src
/
gmond.c
diff --git
a/src/gmond.c
b/src/gmond.c
index
c680427
..
50bd832
100644
(file)
--- a/
src/gmond.c
+++ b/
src/gmond.c
@@
-417,8
+417,8
@@
static staging_entry_t *staging_entry_get(const char *host, /* {{{ */
if (staging_tree == NULL)
return NULL;
if (staging_tree == NULL)
return NULL;
- s
s
nprintf(key, sizeof(key), "%s/%s/%s", host, type,
-
(type_instance != NULL) ? type_instance : "");
+ snprintf(key, sizeof(key), "%s/%s/%s", host, type,
+ (type_instance != NULL) ? type_instance : "");
se = NULL;
status = c_avl_get(staging_tree, key, (void *)&se);
se = NULL;
status = c_avl_get(staging_tree, key, (void *)&se);