projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tree wide: Replace sstrerror() with STRERRNO.
[collectd.git]
/
src
/
redis.c
diff --git
a/src/redis.c
b/src/redis.c
index
05225b5
..
7c704ab
100644
(file)
--- a/
src/redis.c
+++ b/
src/redis.c
@@
-370,7
+370,7
@@
static int redis_db_stats(char *node, char const *info_line) /* {{{ */
char *str;
int i;
char *str;
int i;
- s
s
nprintf(field_name, sizeof(field_name), "db%d:keys=", db);
+ snprintf(field_name, sizeof(field_name), "db%d:keys=", db);
str = strstr(info_line, field_name);
if (!str)
str = strstr(info_line, field_name);
if (!str)
@@
-386,7
+386,7
@@
static int redis_db_stats(char *node, char const *info_line) /* {{{ */
return -1;
}
return -1;
}
- s
s
nprintf(db_id, sizeof(db_id), "%d", db);
+ snprintf(db_id, sizeof(db_id), "%d", db);
redis_submit(node, "records", db_id, val);
}
return 0;
redis_submit(node, "records", db_id, val);
}
return 0;