1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

simple increment bug in uniarray_2_dosarray

This commit is contained in:
Andrew Tridgell -
parent 62d72dd67b
commit 6506e6f470

View File

@ -3894,6 +3894,7 @@ static BOOL uniarray_2_dosarray(BUFFER5 *buf5, fstring **ar)
src = skip_unibuf(src, 2*buf5->buf_len - PTR_DIFF(src,buf5->buffer));
*ar = (fstring *)Realloc(*ar, sizeof(fstring)*(n+2));
fstrcpy((*ar)[n], f);
n++;
}
fstrcpy((*ar)[n], "");