summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/web/cgi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index 0227cd07a6..7b12bf5748 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -221,19 +221,17 @@ void cgi_load_variables(void)
pstring dest;
convert_string(CH_DISPLAY, CH_UNIX,
- variables[i].name, -1,
+ variables[i].name, strlen(variables[i].name),
dest, sizeof(dest));
free(variables[i].name);
variables[i].name = strdup(dest);
convert_string(CH_DISPLAY, CH_UNIX,
- variables[i].value, -1,
+ variables[i].value, strlen(variables[i].name),
dest, sizeof(dest));
free(variables[i].value);
variables[i].value = strdup(dest);
}
-
-
}