null terminate. duh.
authorroot <devnull@localhost>
Tue, 27 Feb 1996 23:40:44 +0000 (23:40 +0000)
committerroot <devnull@localhost>
Tue, 27 Feb 1996 23:40:44 +0000 (23:40 +0000)
CVS patchset: 435
CVS date: 1996/02/27 23:40:44

build/pack.c

index 5348ae7..c0202a2 100644 (file)
@@ -590,6 +590,7 @@ static int parseForVerify(char *buf, int *verify_flags)
     }
 
     strncpy(ourbuf, p, end-p);
+    ourbuf[end-p] = '\0';
     while (start <= end) {
        *start++ = ' ';
     }