The Samba-Bugzilla – Attachment 3331 Details for
Bug 5516
Saving the configuration with SWAT is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix-saving-of-the-config-file-in-SWAT
0003-Fix-saving-of-the-config-file-in-SWAT-5516.patch (text/plain), 1.13 KB, created by
Andreas Schneider
on 2008-06-03 08:09:11 UTC
(
hide
)
Description:
Fix-saving-of-the-config-file-in-SWAT
Filename:
MIME Type:
Creator:
Andreas Schneider
Created:
2008-06-03 08:09:11 UTC
Size:
1.13 KB
patch
obsolete
>From 1f105008535c7d8604a396469df7eb73b5fd50c9 Mon Sep 17 00:00:00 2001 >From: Andreas Schneider <anschneider@suse.de> >Date: Tue, 3 Jun 2008 15:05:50 +0200 >Subject: [PATCH] Fix saving of the config file in SWAT; [#5516]. > >The strlen of the source string passed to convert_string_allocate was too >short :) >--- > source/web/cgi.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/source/web/cgi.c b/source/web/cgi.c >index 28f64f8..070e80c 100644 >--- a/source/web/cgi.c >+++ b/source/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 : ""); >-- >1.5.4.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 5516
: 3331