summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-02-27 23:21:37 +0000
committerGerald Carter <jerry@samba.org>2003-02-27 23:21:37 +0000
commite1b21381f3b5cf6f97c101642e9286df9987998e (patch)
treeb0dfb92600e53c5ae7dfb3e118e8d1aa408b4fb2 /source
parent9b0a49a0bc177f9637f197b3ab4613f25db1b43d (diff)
downloadsamba-e1b21381f3b5cf6f97c101642e9286df9987998e.tar.gz
samba-e1b21381f3b5cf6f97c101642e9286df9987998e.tar.xz
samba-e1b21381f3b5cf6f97c101642e9286df9987998e.zip
and the winner of "i should have just written it in assembly
is..." don't use pstrcpy() when you are not dealing with pstrings.
Diffstat (limited to 'source')
-rw-r--r--source/smbd/dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/dir.c b/source/smbd/dir.c
index 2a5f7ffd71a..10241e88d95 100644
--- a/source/smbd/dir.c
+++ b/source/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 = pstrcpy( (char *)&entry[1], path);
- entry->name = pstrcpy( &(entry->path[pathlen]), name);
- entry->dname = pstrcpy( &(entry->name[namelen]), dname);
+ 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->snum = snum;
/* Add the new entry to the linked list. */