sprintf format/argument count mismatch
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 7 Apr 1987 01:00:53 +0000 (17:00 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 7 Apr 1987 01:00:53 +0000 (17:00 -0800)
SCCS-vsn: old/catman/catman.c 5.8

usr/src/old/catman/catman.c

index b50b2c7..6d64e3a 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)catman.c   5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)catman.c   5.8 (Berkeley) %G%";
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -181,7 +181,7 @@ doit(mandir)
                                continue;
                        (void) strcpy(msp, dir->d_name);
                        if ((inf = fopen(man, "r")) == NULL) {
                                continue;
                        (void) strcpy(msp, dir->d_name);
                        if ((inf = fopen(man, "r")) == NULL) {
-                               sprintf(buf, "catman: %s");
+                               sprintf(buf, "catman: %s", man);
                                perror(buf);
                                exstat = 1;
                                continue;
                                perror(buf);
                                exstat = 1;
                                continue;