summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/charcnv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c
index 5a922e226c..5f3cf64a68 100644
--- a/source3/lib/charcnv.c
+++ b/source3/lib/charcnv.c
@@ -270,7 +270,7 @@ size_t convert_string(charset_t from, charset_t to,
break;
} else {
if (srclen == (size_t)-1) {
- srclen = strlen(src)+1;
+ srclen = strlen(p)+1;
}
return retval + convert_string_internal(from, to, p, srclen, q, destlen);
}
@@ -296,7 +296,7 @@ size_t convert_string(charset_t from, charset_t to,
break;
} else {
if (srclen == (size_t)-1) {
- srclen = strlen_w(src)+2;
+ srclen = strlen_w((const void *)p)+2;
}
return retval + convert_string_internal(from, to, p, srclen, q, destlen);
}
@@ -322,7 +322,7 @@ size_t convert_string(charset_t from, charset_t to,
break;
} else {
if (srclen == (size_t)-1) {
- srclen = strlen(src)+1;
+ srclen = strlen(p)+1;
}
return retval + convert_string_internal(from, to, p, srclen, q, destlen);
}