From 67850c4574c739c61702eb18389ae4a592018037 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 20 May 1998 04:20:31 +0000 Subject: Fixed incorrect last arg to safe_strcpy in new wildcard code. Jeremy. (This used to be commit 67007d98b9daf5cccf049cb836dbb989516eb0ce) --- source3/smbd/trans2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = '*'; } -- cgit