summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-04-11 13:47:17 +0000
committerAndrew Tridgell <tridge@samba.org>2000-04-11 13:47:17 +0000
commit03630a9aa9ce5c00619ad3c4bb498d95054ae03a (patch)
tree8205dc2e14c37e20ccdf56397051ce6de330b3e9
parentcdf223083fed0f35549071d141f6257c4a660ca2 (diff)
downloadsamba-03630a9aa9ce5c00619ad3c4bb498d95054ae03a.tar.gz
samba-03630a9aa9ce5c00619ad3c4bb498d95054ae03a.tar.bz2
samba-03630a9aa9ce5c00619ad3c4bb498d95054ae03a.zip
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)
-rw-r--r--source3/lib/util_unistr.c10
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.