diff options
author | Gerald Carter <jerry@samba.org> | 2003-02-27 23:54:58 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-02-27 23:54:58 +0000 |
commit | 19995a40c15b33fe82a3d2399de00f8972325d1e (patch) | |
tree | 7808046068b11d7b2ea9c0ea5324389a38cf7b9b /source3/smbd | |
parent | e4c8e7ad8a154d9806a7b1214adb9982dc28f4b1 (diff) | |
download | samba-19995a40c15b33fe82a3d2399de00f8972325d1e.tar.gz samba-19995a40c15b33fe82a3d2399de00f8972325d1e.tar.bz2 samba-19995a40c15b33fe82a3d2399de00f8972325d1e.zip |
don't forget the NULL
(This used to be commit 4aa611958ebedfafbb9bfc1070b7d632272e1aaf)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/dir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 10241e88d9..95acf4a262 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -1028,9 +1028,9 @@ void DirCacheAdd( const char *path, char *name, char *dname, int snum ) return; /* so just return as if nothing happened. */ /* Set pointers correctly and load values. */ - entry->path = memcpy( (char *)&entry[1], path, strlen(path) ); - entry->name = memcpy( &(entry->path[pathlen]), name, strlen(name) ); - entry->dname = memcpy( &(entry->name[namelen]), dname, strlen(dname) ); + entry->path = memcpy( (char *)&entry[1], path, strlen(path)+1 ); + entry->name = memcpy( &(entry->path[pathlen]), name, strlen(name)+1 ); + entry->dname = memcpy( &(entry->name[namelen]), dname, strlen(dname)+1 ); entry->snum = snum; /* Add the new entry to the linked list. */ |