1
0
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:
Andrew Tridgell 2000-04-11 13:47:17 +00:00
parent cdf223083f
commit 03630a9aa9

View File

@ -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.