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 #3339 from jkohen/patch-1
[collectd.git]
/
src
/
perl.c
diff --git
a/src/perl.c
b/src/perl.c
index
09e6e5a
..
0a4ae71
100644
(file)
--- a/
src/perl.c
+++ b/
src/perl.c
@@
-863,9
+863,9
@@
static int oconfig_item2hv(pTHX_ oconfig_item_t *ci, HV *hash) {
static char *get_module_name(char *buf, size_t buf_len, const char *module) {
int status = 0;
if (base_name[0] == '\0')
static char *get_module_name(char *buf, size_t buf_len, const char *module) {
int status = 0;
if (base_name[0] == '\0')
- status = snprintf(buf, buf_len, "%s", module);
+ status = s
s
nprintf(buf, buf_len, "%s", module);
else
else
- status = snprintf(buf, buf_len, "%s::%s", base_name, module);
+ status = s
s
nprintf(buf, buf_len, "%s::%s", base_name, module);
if ((status < 0) || ((unsigned int)status >= buf_len))
return NULL;
return buf;
if ((status < 0) || ((unsigned int)status >= buf_len))
return NULL;
return buf;