summaryrefslogtreecommitdiffstats
path: root/source/smbd/mangle.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-09-12 21:48:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:41 -0500
commit7f0db75fb0f24873577dcb758a2ecee74fdc4297 (patch)
treeabf4c2870bace46fb7a271b3a9053b5664667b28 /source/smbd/mangle.c
parent93c42fd9b52d9135d8c8b52e97cf342c1c5b5010 (diff)
downloadsamba-7f0db75fb0f24873577dcb758a2ecee74fdc4297.tar.gz
samba-7f0db75fb0f24873577dcb758a2ecee74fdc4297.tar.xz
samba-7f0db75fb0f24873577dcb758a2ecee74fdc4297.zip
r25117: The mega-patch Jerry was waiting for. Remove all pstrings from
the main server code paths. We should now be able to cope with paths up to PATH_MAX length now. Final job will be to add the TALLOC_CTX * parameter to unix_convert to make it explicit (for Volker). Jeremy.
Diffstat (limited to 'source/smbd/mangle.c')
-rw-r--r--source/smbd/mangle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/smbd/mangle.c b/source/smbd/mangle.c
index 61490c444eb..4c00f6d14ab 100644
--- a/source/smbd/mangle.c
+++ b/source/smbd/mangle.c
@@ -135,6 +135,8 @@ BOOL name_to_8_3(const char *in,
BOOL cache83,
const struct share_params *p)
{
+ memset(out,'\0',13);
+
/* name mangling can be disabled for speed, in which case
we just truncate the string */
if (!lp_manglednames(p)) {