changed the definition of dos_PutUniCode
authorAndrew Tridgell <tridge@samba.org>
Mon, 27 Mar 2000 12:38:45 +0000 (12:38 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 27 Mar 2000 12:38:45 +0000 (12:38 +0000)
commit18bc76a0c6830358a137b4198e17b1b7ce92b9bf
tree80ddeebfb47c978607be5c708ec5e81d10b91d6a
parent6570b48d73d4d6597cf8f17040cb57e8b16394dd
changed the definition of dos_PutUniCode

the previous definition could result is us overflowing a buffer. The
null termination was always added yet the size returned did not
include the null termination.

the new function takes a BOOL null_terminate, and always returns the
total number of bytes consumed by the string.
(This used to be commit 426c90433396a95033eefcc4af97603abc934221)
source3/include/proto.h
source3/lib/util_unistr.c
source3/libsmb/namequery.c
source3/nmbd/nmbd_processlogon.c
source3/smbd/trans2.c