projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treewide: replace ssnprintf with snprintf
[collectd.git]
/
src
/
teamspeak2.c
diff --git
a/src/teamspeak2.c
b/src/teamspeak2.c
index
a26d16e
..
12c2753
100644
(file)
--- a/
src/teamspeak2.c
+++ b/
src/teamspeak2.c
@@
-333,7
+333,7
@@
static int tss2_select_vserver(FILE *read_fh, FILE *write_fh,
int status;
/* Send request */
int status;
/* Send request */
- s
s
nprintf(command, sizeof(command), "sel %i\r\n", vserver->port);
+ snprintf(command, sizeof(command), "sel %i\r\n", vserver->port);
status = tss2_send_request(write_fh, command);
if (status != 0) {
status = tss2_send_request(write_fh, command);
if (status != 0) {
@@
-463,7
+463,7
@@
static int tss2_read_vserver(vserver_list_t *vserver) {
status = tss2_send_request(write_fh, "gi\r\n");
} else {
/* Request server information */
status = tss2_send_request(write_fh, "gi\r\n");
} else {
/* Request server information */
- s
s
nprintf(plugin_instance, sizeof(plugin_instance), "vserver%i",
+ snprintf(plugin_instance, sizeof(plugin_instance), "vserver%i",
vserver->port);
/* Select the server */
vserver->port);
/* Select the server */