summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-03 23:53:35 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-03 23:53:35 +0000
commitbd0c84d60b703e89081838a7cfa1eb1b4f45ad0a (patch)
tree422aa764bcdde13af367fa73da898368d5927527 /source
parent3ad62ebe26d8c6b82f8618eea11d104b3ab0ec18 (diff)
downloadsamba-bd0c84d60b703e89081838a7cfa1eb1b4f45ad0a.tar.gz
samba-bd0c84d60b703e89081838a7cfa1eb1b4f45ad0a.tar.xz
samba-bd0c84d60b703e89081838a7cfa1eb1b4f45ad0a.zip
Another pstrcpy() into malloc()ed buffer fix.
Andrew Bartlett
Diffstat (limited to 'source')
-rw-r--r--source/smbd/statcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/statcache.c b/source/smbd/statcache.c
index f4b613428a2..b6e84ec9a58 100644
--- a/source/smbd/statcache.c
+++ b/source/smbd/statcache.c
@@ -106,8 +106,8 @@ void stat_cache_add( char *full_orig_name, char *orig_translated_path)
DEBUG(0,("stat_cache_add: Out of memory !\n"));
return;
}
- pstrcpy(scp->names, orig_name);
- pstrcpy((scp->names+namelen+1), translated_path);
+ safe_strcpy(scp->names, orig_name, namelen);
+ safe_strcpy((scp->names+namelen+1), translated_path, namelen);
scp->name_len = namelen;
hash_insert(&stat_cache, (char *)scp, orig_name);
}