summaryrefslogtreecommitdiffstats
path: root/source/web/cgi.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-24 06:24:14 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-24 06:24:14 +0000
commite558ab6ac8930e3393291fe12289ad43175b8a1d (patch)
tree28431b8ed791901e772633559db55d97fa493427 /source/web/cgi.c
parent73f10d3ef6de2dbcb23f93ef93eb9e7053ebf26b (diff)
downloadsamba-e558ab6ac8930e3393291fe12289ad43175b8a1d.tar.gz
samba-e558ab6ac8930e3393291fe12289ad43175b8a1d.tar.xz
samba-e558ab6ac8930e3393291fe12289ad43175b8a1d.zip
fixed a silly off by 1 bug
Diffstat (limited to 'source/web/cgi.c')
-rw-r--r--source/web/cgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/web/cgi.c b/source/web/cgi.c
index 7b12bf57489..939b8f94cdc 100644
--- a/source/web/cgi.c
+++ b/source/web/cgi.c
@@ -221,13 +221,13 @@ void cgi_load_variables(void)
pstring dest;
convert_string(CH_DISPLAY, CH_UNIX,
- variables[i].name, strlen(variables[i].name),
+ variables[i].name, -1,
dest, sizeof(dest));
free(variables[i].name);
variables[i].name = strdup(dest);
convert_string(CH_DISPLAY, CH_UNIX,
- variables[i].value, strlen(variables[i].name),
+ variables[i].value, -1,
dest, sizeof(dest));
free(variables[i].value);
variables[i].value = strdup(dest);