From: deraadt Date: Fri, 25 Apr 1997 18:13:19 +0000 (+0000) Subject: 1 byte underflow X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cea5c39e26891ca127c395778b0bde4f6e30c320;p=openbsd 1 byte underflow --- 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);