summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/mangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/mangle.c b/source3/smbd/mangle.c
index f69c940539..fce86903f2 100644
--- a/source3/smbd/mangle.c
+++ b/source3/smbd/mangle.c
@@ -119,7 +119,7 @@ BOOL mangle_check_cache_alloc(const char *name, char **presult,
char *result;
pstrcpy(tmp, name);
- if (!mangle_check_cache(tmp, sizeof(pstring), p)
+ if (!mangle_check_cache(tmp, sizeof(pstring)-1, p)
|| !(result = SMB_STRDUP(tmp))) {
return False;
}