changeset 34626:fb13b4e8eeb4

Fix two copy-and-paste errors in the Win32 GUI. Reported by Stephen Sheldon, sfsheldo gmail com.
author ib
date Mon, 13 Feb 2012 15:48:12 +0000
parents 82d1cef6bcee
children 3482045da618
files gui/win32/wincfg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/wincfg.c	Mon Feb 13 14:12:54 2012 +0000
+++ b/gui/win32/wincfg.c	Mon Feb 13 15:48:12 2012 +0000
@@ -130,9 +130,9 @@
             {
                 char delim[] = "\"";
 
-                if (!strchr(val, ' ')) *delim = 0;
+                if (!strchr(v, ' ')) *delim = 0;
 
-                fprintf(f, "%s=%s%s%s\n", gui_opts[i].name, v);
+                fprintf(f, "%s=%s%s%s\n", gui_opts[i].name, delim, v, delim);
                 free(v);
             }
         }