1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-30 06:50:24 +03:00

r23866: Fix a 1-byte buffer overrun

(This used to be commit 2ed83d36fec918e6ad9605f43e1a49fa5b61f17b)
This commit is contained in:
Volker Lendecke 2007-07-13 13:29:12 +00:00 committed by Gerald (Jerry) Carter
parent 6eca5f5042
commit ac51ffb77b

View File

@ -119,7 +119,7 @@ BOOL mangle_check_cache_alloc(const char *name, char **presult,
char *result;
pstrcpy(tmp, name);
if (!mangle_check_cache(tmp, sizeof(pstring), p)
if (!mangle_check_cache(tmp, sizeof(pstring)-1, p)
|| !(result = SMB_STRDUP(tmp))) {
return False;
}