1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

Fixed nasty size wrong bug spotted by the eagle eyes of

JF :-).
Jeremy.
This commit is contained in:
Jeremy Allison -
parent 6696bf203c
commit 443293a065

View File

@ -201,7 +201,7 @@ char *dos_unistr2_to_str(UNISTR2 *str)
char *lbuf = lbufs[nexti];
char *p;
uint16 *src = str->buffer;
int max_size = MIN(sizeof(str->buffer)-3, str->uni_str_len);
int max_size = MIN(MAXUNI-3, str->uni_str_len);
nexti = (nexti+1)%8;