mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
added a cheap and nasty skip_unibuf() fn to allow easier merging from
TNG out unicode string handling functions need a lot of work (This used to be commit 707401fc1e697362cdaadcfaac4edc964b80b1a0)
This commit is contained in:
parent
cdf223083f
commit
03630a9aa9
@ -137,6 +137,16 @@ void unistr_to_ascii(char *dest, const uint16 *src, int len)
|
||||
*dest = 0;
|
||||
}
|
||||
|
||||
/* from TNG - should be fixed */
|
||||
char *skip_unibuf(char *src, int len)
|
||||
{
|
||||
char *srcend = src + len;
|
||||
|
||||
while (src < srcend && SVAL(src,0)) src += 2;
|
||||
|
||||
return src;
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************
|
||||
Skip past some unicode strings in a buffer.
|
||||
|
Loading…
x
Reference in New Issue
Block a user