1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Fixed incorrect last arg to safe_strcpy in new wildcard code.

Jeremy.
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent 5d8ef7d0f1
commit 67007d98b9

View File

@ -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 = '*';
}