summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-02-27 23:52:37 +0000
committerGerald Carter <jerry@samba.org>2003-02-27 23:52:37 +0000
commit17c417e6e66e05d6bcee98cb1c7ebfa7d98a5347 (patch)
treed46c611fed96d2221e395e129bcff8afdb17982e /source3
parent3a7d807ec9974f0b4d7938a4b734c2c7f350cd08 (diff)
downloadsamba-17c417e6e66e05d6bcee98cb1c7ebfa7d98a5347.tar.gz
samba-17c417e6e66e05d6bcee98cb1c7ebfa7d98a5347.tar.bz2
samba-17c417e6e66e05d6bcee98cb1c7ebfa7d98a5347.zip
don't forget the NULL
(This used to be commit f80610120483c929afbec83d2b8649cb3e5111b0)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/dir.c6
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. */