off_t's are quad, use %qd not %ld
authorChris Torek <torek@ucbvax.Berkeley.EDU>
Sat, 10 Apr 1993 15:24:38 +0000 (07:24 -0800)
committerChris Torek <torek@ucbvax.Berkeley.EDU>
Sat, 10 Apr 1993 15:24:38 +0000 (07:24 -0800)
SCCS-vsn: usr.bin/ar/contents.c 5.7

usr/src/usr.bin/ar/contents.c

index cd5519b..3e8f81a 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)contents.c 5.6 (Berkeley) %G%";
+static char sccsid[] = "@(#)contents.c 5.7 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -49,7 +49,7 @@ contents(argv)
                        goto next;
                if (options & AR_V) {
                        (void)strmode(chdr.mode, buf);
                        goto next;
                if (options & AR_V) {
                        (void)strmode(chdr.mode, buf);
-                       (void)printf("%s %6d/%-6d %8ld ",
+                       (void)printf("%s %6d/%-6d %8qd ",
                            buf + 1, chdr.uid, chdr.gid, chdr.size);
                        tp = localtime(&chdr.date);
                        (void)strftime(buf, sizeof(buf), "%b %e %H:%M %Y", tp);
                            buf + 1, chdr.uid, chdr.gid, chdr.size);
                        tp = localtime(&chdr.date);
                        (void)strftime(buf, sizeof(buf), "%b %e %H:%M %Y", tp);