1
0
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:
Simon Tatham 2000-04-26 08:07:08 +00:00
parent 261fa87101
commit 5f93b919ac

View File

@ -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';