summaryrefslogtreecommitdiff
path: root/source4/smb_server/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smb_server/search.c')
-rw-r--r--source4/smb_server/search.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/smb_server/search.c b/source4/smb_server/search.c
index a99958d6c6..acd1b6d417 100644
--- a/source4/smb_server/search.c
+++ b/source4/smb_server/search.c
@@ -81,8 +81,9 @@ static void find_fill_info(struct smbsrv_request *req,
SCVAL(p, 21, file->search.attrib);
srv_push_dos_date(req->smb_conn, p, 22, file->search.write_time);
SIVAL(p, 26, file->search.size);
- memset(p+30, ' ', 13);
- memcpy(p+30, file->search.name, MIN(strlen(file->search.name)+1, 13));
+ memset(p+30, ' ', 12);
+ memcpy(p+30, file->search.name, MIN(strlen(file->search.name)+1, 12));
+ SCVAL(p,42,0);
}
/* callback function for search first/next */