have to save the result of ctime()
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 7 May 1983 08:47:43 +0000 (00:47 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 7 May 1983 08:47:43 +0000 (00:47 -0800)
SCCS-vsn: sbin/restore/tape.c 3.15

usr/src/sbin/restore/tape.c

index 3d9569e..8615f6e 100644 (file)
@@ -1,7 +1,7 @@
 /* Copyright (c) 1983 Regents of the University of California */
 
 #ifndef lint
 /* Copyright (c) 1983 Regents of the University of California */
 
 #ifndef lint
-static char sccsid[] = "@(#)tape.c     3.14    (Berkeley)      83/05/06";
+static char sccsid[] = "@(#)tape.c     3.15    (Berkeley)      83/05/06";
 #endif
 
 #include "restore.h"
 #endif
 
 #include "restore.h"
@@ -228,8 +228,9 @@ gethdr:
                goto again;
        }
        if (tmpbuf.c_date != dumpdate || tmpbuf.c_ddate != dumptime) {
                goto again;
        }
        if (tmpbuf.c_date != dumpdate || tmpbuf.c_ddate != dumptime) {
-               fprintf(stderr, "Wrong dump date\n\tgot: %s\twanted %s",
-                       ctime(&tmpbuf.c_date), ctime(dumpdate));
+               fprintf(stderr, "Wrong dump date\n\tgot: %s",
+                       ctime(&tmpbuf.c_date));
+               fprintf(stderr, "\twanted: %s", ctime(&dumpdate));
                volno = 0;
                goto again;
        }
                volno = 0;
                goto again;
        }