1 byte underflow
authorderaadt <deraadt@openbsd.org>
Fri, 25 Apr 1997 18:13:19 +0000 (18:13 +0000)
committerderaadt <deraadt@openbsd.org>
Fri, 25 Apr 1997 18:13:19 +0000 (18:13 +0000)
gnu/usr.bin/cvs/src/main.c

index fc97f23..be606ce 100644 (file)
@@ -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);