]> Dogcows Code - chaz/tar/blobdiff - src/tar.c
Fix some problems with negative and out-of-range integers.
[chaz/tar] / src / tar.c
index cbb6c68439c2d06d2c42b34cead3107275f1f9ae..1f7289a4ef373b69939b633f4ccfec86f2e459a0 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
 # define DEFAULT_BLOCKING 20
 #endif
 
+/* Print a message if not all links are dumped */
+static int check_links_option;
+
+/* Number of allocated tape drive names.  */
+static size_t allocated_archive_names;
+
 \f
 /* Miscellaneous.  */
 
@@ -1377,8 +1383,8 @@ expand_pax_option (struct tar_args *targs, const char *arg)
              tmp[len-2] = 0;
              if (get_date_or_file (targs, "--pax-option", tmp, &ts) == 0)
                {
-                 char buf[UINTMAX_STRSIZE_BOUND], *s;
-                 s = umaxtostr (ts.tv_sec, buf);
+                 char buf[TIMESPEC_STRSIZE_BOUND];
+                 char const *s = code_timespec (ts, buf);
                  obstack_grow (&stk, s, strlen (s));
                }
              else
This page took 0.021242 seconds and 4 git commands to generate.