diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-05 16:08:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-05 16:08:10 +0000 |
commit | 775ca5a24ac0f14dcff7f13ae7867cf9e65e5cf8 (patch) | |
tree | 0b2c8b3740d51212a8d148e0ef3ba827dee67ba8 /gnu/usr.bin/cvs | |
parent | eab91235fe54ebf066133799987dcfc17ede044d (diff) |
for RCSLOCALID thing, use malloc/putenv instead of setenv
Diffstat (limited to 'gnu/usr.bin/cvs')
-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; |