diff options
author | 1996-08-05 16:08:09 +0000 | |
---|---|---|
committer | 1996-08-05 16:08:09 +0000 | |
commit | 0dd042fc01d792091730570d300499da1045b76c (patch) | |
tree | 064bbc7dfe4664618ea3cfee824acddb743eb90a | |
parent | truncate h_name and h_aliases[] to MAXHOSTNAMELEN (diff) | |
download | wireguard-openbsd-0dd042fc01d792091730570d300499da1045b76c.tar.xz wireguard-openbsd-0dd042fc01d792091730570d300499da1045b76c.zip |
for RCSLOCALID thing, use malloc/putenv instead of setenv
-rw-r--r-- | gnu/usr.bin/cvs/src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/usr.bin/cvs/src/main.c b/gnu/usr.bin/cvs/src/main.c index ba22664940d..0150771262c 100644 --- a/gnu/usr.bin/cvs/src/main.c +++ b/gnu/usr.bin/cvs/src/main.c @@ -871,7 +871,10 @@ parseopts() if (!strncmp(buf, "tag=", 4)) { char *RCS_citag = strdup(buf+4); - setenv("RCSLOCALID", RCS_citag, 1); + char *what = malloc(sizeof("RCSLOCALID")+1+strlen(RCS_citag)); + + sprintf(what, "RCSLOCALID=%s", RCS_citag); + putenv(what); } else if (!strncmp(buf, "umask=", 6)) { mode_t mode; |