summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/util_unistr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c
index 01ec262f60..4e7872021b 100644
--- a/source3/lib/util_unistr.c
+++ b/source3/lib/util_unistr.c
@@ -203,7 +203,7 @@ uint32 buffer2_to_uint32(const BUFFER2 *str)
{
if (str->buf_len == 4)
{
- const char *src = (const char*)str->buffer;
+ const char *src = str->buffer;
return IVAL(src, 0);
}
else
@@ -220,7 +220,7 @@ uint32 buffer2_to_uint32(const BUFFER2 *str)
void buffer2_to_multistr(char *dest, const BUFFER2 *str, int maxlen)
{
char *destend;
- const uint16 *src;
+ const char *src;
int len;
register uint16 c;
@@ -232,6 +232,7 @@ void buffer2_to_multistr(char *dest, const BUFFER2 *str, int maxlen)
{
c = *(src++);
*(dest++) = (c == 0) ? ' ' : (char)c;
+ src++;
}
*dest = 0;