diff options
author | Gerald Carter <jerry@samba.org> | 2003-07-23 12:33:59 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-07-23 12:33:59 +0000 |
commit | 3a5dc7c2ecacecf7dd0cfd71ff1bb298d70b391b (patch) | |
tree | 431c515b374806d4fd4f5dbb4f60a055d1e7c441 /source3/torture/mangle_test.c | |
parent | 490fcdd199aed91a6e982911bd1ff5019b340b4d (diff) | |
download | samba-3a5dc7c2ecacecf7dd0cfd71ff1bb298d70b391b.tar.gz |
convert snprintf() calls using pstrings & fstrings
to pstr_sprintf() and fstr_sprintf() to try to standardize.
lots of snprintf() calls were using len-1; some were using
len. At least this helps to be consistent.
(This used to be commit 9f835b85dd38cbe655eb19021ff763f31886ac00)
Diffstat (limited to 'source3/torture/mangle_test.c')
-rw-r--r-- | source3/torture/mangle_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/torture/mangle_test.c b/source3/torture/mangle_test.c index 660d4d17af2..9a719349b65 100644 --- a/source3/torture/mangle_test.c +++ b/source3/torture/mangle_test.c @@ -54,7 +54,7 @@ static BOOL test_one(struct cli_state *cli, const char *name) return False; } - snprintf(name2, sizeof(name2), "\\mangle_test\\%s", shortname); + fstr_sprintf(name2, "\\mangle_test\\%s", shortname); if (!cli_unlink(cli, name2)) { printf("unlink of %s (%s) failed (%s)\n", name2, name, cli_errstr(cli)); |