summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
authorAndreas Schneider <anschneider@suse.de>2008-06-03 15:05:50 +0200
committerStefan Metzmacher <metze@samba.org>2008-06-03 15:35:41 +0200
commit0d556eabdecbcee20e947cd81c50fd8bca79af46 (patch)
treee6fd645b233e91cd896271e3dd3097f5caa677d4 /source3/web
parent1c0a9759b92c92636f83f965950acc12b07b1eed (diff)
downloadsamba-0d556eabdecbcee20e947cd81c50fd8bca79af46.tar.gz
samba-0d556eabdecbcee20e947cd81c50fd8bca79af46.tar.bz2
samba-0d556eabdecbcee20e947cd81c50fd8bca79af46.zip
Fix saving of the config file in SWAT; [#5516].
The strlen of the source string passed to convert_string_allocate was too short :) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit ac3597ef8b7781499ab55f1039670ec82202e32c)
Diffstat (limited to 'source3/web')
-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 : "");