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/smbd | |
parent | 490fcdd199aed91a6e982911bd1ff5019b340b4d (diff) | |
download | samba-3a5dc7c2ecacecf7dd0cfd71ff1bb298d70b391b.tar.gz samba-3a5dc7c2ecacecf7dd0cfd71ff1bb298d70b391b.tar.bz2 samba-3a5dc7c2ecacecf7dd0cfd71ff1bb298d70b391b.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.
(This used to be commit 9f835b85dd38cbe655eb19021ff763f31886ac00)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/sesssetup.c | 2 | ||||
-rw-r--r-- | source3/smbd/trans2.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index 9ec5433b02..767bf84154 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -62,7 +62,7 @@ static int add_signature(char *outbuf, char *p) char *start = p; fstring lanman; - snprintf( lanman, sizeof(lanman), "Samba %s", VERSION ); + fstr_sprintf( lanman, "Samba %s", VERSION ); p += srvstr_push(outbuf, p, "Unix", -1, STR_TERMINATE); p += srvstr_push(outbuf, p, lanman, -1, STR_TERMINATE); diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 398646a6cd..9998887793 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -1912,7 +1912,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn, if (strequal(base_name,".")) { pstrcpy(dos_fname, "\\"); } else { - snprintf(dos_fname, sizeof(dos_fname), "\\%s", fname); + pstr_sprintf(dos_fname, "\\%s", fname); string_replace(dos_fname, '/', '\\'); } |