From d5087941183144c68bc02aa32da52c175e9aaa30 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 10 Oct 2000 18:34:44 +0000 Subject: Fixed nasty size wrong bug spotted by the eagle eyes of JF :-). Jeremy. (This used to be commit 443293a06530d0a5421b39d9a6a224d6ae316bd3) --- source3/lib/util_unistr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index 3282761ff8..ad387b4e9d 100644 --- a/source3/lib/util_unistr.c +++ b/source3/lib/util_unistr.c @@ -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; -- cgit