]> Dogcows Code - chaz/tar/blobdiff - src/tar.c
Fix some problems with negative and out-of-range integers.
[chaz/tar] / src / tar.c
index d230e958df4ab1e530a6d20099d0edb4e513364a..1f7289a4ef373b69939b633f4ccfec86f2e459a0 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -1383,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.020408 seconds and 4 git commands to generate.