use esetenv

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9089 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-10-02 05:06:04 +00:00
parent 80b8795b5b
commit 3e00ddf50d
13 changed files with 30 additions and 47 deletions

View File

@@ -1016,7 +1016,7 @@ suboption(void)
return;
settimer(xdisplocsubopt);
subpointer[SB_LEN()] = '\0';
setenv("DISPLAY", (char *)subpointer, 1);
esetenv("DISPLAY", (char *)subpointer, 1);
break;
} /* end of case TELOPT_XDISPLOC */
@@ -1183,7 +1183,7 @@ suboption(void)
case ENV_USERVAR:
*cp = '\0';
if (valp)
setenv(varp, valp, 1);
esetenv(varp, valp, 1);
else
unsetenv(varp);
cp = varp = (char *)subpointer;
@@ -1202,7 +1202,7 @@ suboption(void)
}
*cp = '\0';
if (valp)
setenv(varp, valp, 1);
esetenv(varp, valp, 1);
else
unsetenv(varp);
break;