diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-03-03 23:53:35 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-03-03 23:53:35 +0000 |
commit | 7f15d5828f6683f2490ef864a2176919549880d7 (patch) | |
tree | 8f20fd77bc266b83fe1cf828214066edd70ebf28 /source3/smbd | |
parent | 6a58faf46225ffd4c977fe82b8b45374f65c1cec (diff) | |
download | samba-7f15d5828f6683f2490ef864a2176919549880d7.tar.gz samba-7f15d5828f6683f2490ef864a2176919549880d7.tar.bz2 samba-7f15d5828f6683f2490ef864a2176919549880d7.zip |
Another pstrcpy() into malloc()ed buffer fix.
Andrew Bartlett
(This used to be commit bd0c84d60b703e89081838a7cfa1eb1b4f45ad0a)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/statcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/statcache.c b/source3/smbd/statcache.c index f4b613428a..b6e84ec9a5 100644 --- a/source3/smbd/statcache.c +++ b/source3/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); } |