summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/torture/torture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index d3596fcd98..11cea53188 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -713,7 +713,7 @@ static BOOL run_netbench(int client)
nb_setup(cli);
- slprintf(cname,sizeof(fname), "client%d", client);
+ slprintf(cname,sizeof(cname)-1, "client%d", client);
f = fopen(client_txt, "r");