mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-18 03:28:07 -05:00
Environment settings were broken. Fix due to Andros Tantas
[originally from svn r465]
This commit is contained in:
parent
261fa87101
commit
5f93b919ac
4
windlg.c
4
windlg.c
@ -259,7 +259,7 @@ static void load_settings (char *section, int do_host) {
|
|||||||
char buf[2*sizeof(cfg.environmt)], *p, *q;
|
char buf[2*sizeof(cfg.environmt)], *p, *q;
|
||||||
gpps (sesskey, "Environment", "", buf, sizeof(buf));
|
gpps (sesskey, "Environment", "", buf, sizeof(buf));
|
||||||
p = buf;
|
p = buf;
|
||||||
q = cfg.environmt;
|
q = cfg.environmt;
|
||||||
while (*p) {
|
while (*p) {
|
||||||
while (*p && *p != ',') {
|
while (*p && *p != ',') {
|
||||||
int c = *p++;
|
int c = *p++;
|
||||||
@ -267,7 +267,7 @@ static void load_settings (char *section, int do_host) {
|
|||||||
c = '\t';
|
c = '\t';
|
||||||
if (c == '\\')
|
if (c == '\\')
|
||||||
c = *p++;
|
c = *p++;
|
||||||
*p++ = c;
|
*q++ = c;
|
||||||
}
|
}
|
||||||
if (*p == ',') p++;
|
if (*p == ',') p++;
|
||||||
*q++ = '\0';
|
*q++ = '\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user