diff options
author | Jeremy Allison <jra@samba.org> | 1998-05-20 04:20:31 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-05-20 04:20:31 +0000 |
commit | 67850c4574c739c61702eb18389ae4a592018037 (patch) | |
tree | 7f3511c003e724e768544175cd7fc8997c9acbf9 /source3 | |
parent | fd4d5ab75da1e7703919b66ad174e98d94574701 (diff) | |
download | samba-67850c4574c739c61702eb18389ae4a592018037.tar.gz samba-67850c4574c739c61702eb18389ae4a592018037.tar.bz2 samba-67850c4574c739c61702eb18389ae4a592018037.zip |
Fixed incorrect last arg to safe_strcpy in new wildcard code.
Jeremy.
(This used to be commit 67007d98b9daf5cccf049cb836dbb989516eb0ce)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/trans2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 84d9b1cc17..4c06377bda 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -684,7 +684,7 @@ static int call_trans2findfirst(char *inbuf, char *outbuf, int bufsize, int cnum pstrcpy( expnd, p+1 ); *p++ = '*'; *p = '.'; - safe_strcpy( p+1, expnd, p - mask - 1); + safe_strcpy( p+1, expnd, sizeof(mask) - (p - mask) - 2); } else *p = '*'; } |