diff options
author | Jeremy Allison <jra@samba.org> | 2000-10-10 18:34:44 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-10-10 18:34:44 +0000 |
commit | d5087941183144c68bc02aa32da52c175e9aaa30 (patch) | |
tree | f1a66eca84013ddcdb531a8ae0d9e6b25e548f17 | |
parent | afe321b7c90b5c549e06e7d20037ea7d4fdce26d (diff) | |
download | samba-d5087941183144c68bc02aa32da52c175e9aaa30.tar.gz samba-d5087941183144c68bc02aa32da52c175e9aaa30.tar.bz2 samba-d5087941183144c68bc02aa32da52c175e9aaa30.zip |
Fixed nasty size wrong bug spotted by the eagle eyes of
JF :-).
Jeremy.
(This used to be commit 443293a06530d0a5421b39d9a6a224d6ae316bd3)
-rw-r--r-- | source3/lib/util_unistr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |