summaryrefslogtreecommitdiffstats
path: root/source/lib/util.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-07-23 12:33:59 +0000
committerGerald Carter <jerry@samba.org>2003-07-23 12:33:59 +0000
commit9f835b85dd38cbe655eb19021ff763f31886ac00 (patch)
tree6518cb2e4a60a5418ab1ac362041595687d4d82e /source/lib/util.c
parent36bc2b99b4fec2c14f8471d89381b2d6c2f9d339 (diff)
downloadsamba-9f835b85dd38cbe655eb19021ff763f31886ac00.tar.gz
samba-9f835b85dd38cbe655eb19021ff763f31886ac00.tar.xz
samba-9f835b85dd38cbe655eb19021ff763f31886ac00.zip
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.
Diffstat (limited to 'source/lib/util.c')
-rw-r--r--source/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index a7c939fe5a0..bcafad89a55 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -2247,7 +2247,7 @@ char *pid_path(const char *name)
char *lib_path(const char *name)
{
static pstring fname;
- snprintf(fname, sizeof(fname), "%s/%s", dyn_LIBDIR, name);
+ fstr_sprintf(fname, "%s/%s", dyn_LIBDIR, name);
return fname;
}