mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
librpc/ndr: use new strlen_m_ext_term() in ndr_charset_length(): fix bug #7594
This fixes the calculation of needed space for destination unicode charset. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Nov 3 23:28:07 UTC 2010 on sn-devel-104
This commit is contained in:
parent
50bdd93136
commit
7e382a0496
@ -731,11 +731,11 @@ _PUBLIC_ uint32_t ndr_charset_length(const void *var, charset_t chset)
|
||||
case CH_UTF16LE:
|
||||
case CH_UTF16BE:
|
||||
case CH_UTF16MUNGED:
|
||||
return strlen_m_term((const char *)var);
|
||||
case CH_UTF8:
|
||||
return strlen_m_ext_term((const char *)var, CH_UNIX, chset);
|
||||
case CH_DISPLAY:
|
||||
case CH_DOS:
|
||||
case CH_UNIX:
|
||||
case CH_UTF8:
|
||||
return strlen((const char *)var)+1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user