summaryrefslogtreecommitdiff
path: root/source3/lib/util_str.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r--source3/lib/util_str.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 4c8d5d8bf7..88a72f1536 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -762,7 +762,7 @@ char *realloc_string_sub(char *string, const char *pattern, const char *insert)
return NULL;
}
string = t;
- s = t + (p - s);
+ p = t + (p - s);
}
if (li != lp) {
memmove(p+li,p+lp,strlen(p+lp)+1);
@@ -992,7 +992,7 @@ void strlower_m(char *s)
/*******************************************************************
duplicate convert a string to lower case
********************************************************************/
-char *strdup_lower(char *s)
+char *strdup_lower(const char *s)
{
char *t = strdup(s);
if (t == NULL) {
@@ -1026,7 +1026,7 @@ void strupper_m(char *s)
/*******************************************************************
convert a string to upper case
********************************************************************/
-char *strdup_upper(char *s)
+char *strdup_upper(const char *s)
{
char *t = strdup(s);
if (t == NULL) {