Environment settings were broken. Fix due to Andros Tantas
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 26 Apr 2000 08:07:08 +0000 (08:07 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 26 Apr 2000 08:07:08 +0000 (08:07 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@465 cda61777-01e9-0310-a592-d414129be87e

windlg.c

index ad6ac33..46f9063 100644 (file)
--- a/windlg.c
+++ b/windlg.c
@@ -259,7 +259,7 @@ static void load_settings (char *section, int do_host) {
       char buf[2*sizeof(cfg.environmt)], *p, *q;
        gpps (sesskey, "Environment", "", buf, sizeof(buf));
        p = buf;
-      q = cfg.environmt;
+       q = cfg.environmt;
        while (*p) {
            while (*p && *p != ',') {
                int c = *p++;
@@ -267,7 +267,7 @@ static void load_settings (char *section, int do_host) {
                    c = '\t';
                if (c == '\\')
                    c = *p++;
-               *p++ = c;
+               *q++ = c;
            }
            if (*p == ',') p++;
            *q++ = '\0';