projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'github/pr/2442'
[collectd.git]
/
src
/
teamspeak2.c
diff --git
a/src/teamspeak2.c
b/src/teamspeak2.c
index
a26d16e
..
4d68f61
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,8
+463,8
@@
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",
-
vserver->port);
+ snprintf(plugin_instance, sizeof(plugin_instance), "vserver%i",
+ vserver->port);
/* Select the server */
status = tss2_select_vserver(read_fh, write_fh, vserver);
/* Select the server */
status = tss2_select_vserver(read_fh, write_fh, vserver);