Merge branch 'master' of github.com:/esnet/iperf
This commit is contained in:
commit
01319ccf37
@ -2592,10 +2592,10 @@ iperf_new_stream(struct iperf_test *test, int s)
|
||||
|
||||
char template[1024];
|
||||
if (test->template) {
|
||||
snprintf(template, strlen(test->template), "%s", test->template);
|
||||
snprintf(template, sizeof(template) / sizeof(char), "%s", test->template);
|
||||
} else {
|
||||
char buf[] = "/tmp/iperf3.XXXXXX";
|
||||
snprintf(template, strlen(buf), "%s", buf);
|
||||
snprintf(template, sizeof(template) / sizeof(char), "%s", buf);
|
||||
}
|
||||
|
||||
h_errno = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user