From cea5c39e26891ca127c395778b0bde4f6e30c320 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 25 Apr 1997 18:13:19 +0000 Subject: [PATCH] 1 byte underflow --- gnu/usr.bin/cvs/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/usr.bin/cvs/src/main.c b/gnu/usr.bin/cvs/src/main.c index fc97f231be7..be606cefda2 100644 --- a/gnu/usr.bin/cvs/src/main.c +++ b/gnu/usr.bin/cvs/src/main.c @@ -957,7 +957,7 @@ parseopts(root) if (!strncmp(buf, "tag=", 4)) { char *RCS_citag = strdup(buf+4); - char *what = malloc(sizeof("RCSLOCALID")+1+strlen(RCS_citag)); + char *what = malloc(sizeof("RCSLOCALID")+1+strlen(RCS_citag)+1); sprintf(what, "RCSLOCALID=%s", RCS_citag); putenv(what); -- 2.20.1