diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util_unistr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index 6983d1100a..8a02878c13 100644 --- a/source3/lib/util_unistr.c +++ b/source3/lib/util_unistr.c @@ -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. |