summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index e01a92e333..c71e864648 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -612,7 +612,7 @@ NTSTATUS file_name_hash(connection_struct *conn,
if (!fullpath) {
return NT_STATUS_NO_MEMORY;
}
- *p_name_hash = hash(fullpath, strlen(fullpath) + 1, 0);
+ *p_name_hash = hash(fullpath, talloc_get_size(fullpath), 0);
DEBUG(10,("file_name_hash: %s hash 0x%x\n",
fullpath,