summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/web/cgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index 28f64f89ad..070e80cf91 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -206,14 +206,14 @@ void cgi_load_variables(void)
size_t dest_len;
convert_string_allocate(frame, CH_UTF8, CH_UNIX,
- variables[i].name, -1,
+ variables[i].name, strlen(variables[i].name),
&dest, &dest_len, True);
SAFE_FREE(variables[i].name);
variables[i].name = SMB_STRDUP(dest ? dest : "");
dest = NULL;
convert_string_allocate(frame, CH_UTF8, CH_UNIX,
- variables[i].value, -1,
+ variables[i].value, strlen(variables[i].value),
&dest, &dest_len, True);
SAFE_FREE(variables[i].value);
variables[i].value = SMB_STRDUP(dest ? dest : "");