mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-10 15:48:06 -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;
|
||||
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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user