]> Dogcows Code - chaz/tar/commitdiff
tar: don't truncate diagnostic
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 13 Dec 2012 22:16:04 +0000 (14:16 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 19 Dec 2012 04:36:57 +0000 (20:36 -0800)
* src/list.c (from_header): Fix buffer size calculation when
generating a diagnostic.

src/list.c

index f2605ad0c258d68ab6214ed5af1eeb8e68707951..7bb719fe934ee857fe33cc3b03f6225aca5e3fb5 100644 (file)
@@ -865,7 +865,7 @@ from_header (char const *where0, size_t digs, char const *type,
 
          while (where0 != lim && ! lim[-1])
            lim--;
-         quotearg_buffer (buf, sizeof buf, where0, lim - where, o);
+         quotearg_buffer (buf, sizeof buf, where0, lim - where0, o);
          if (!silent)
            ERROR ((0, 0,
                    /* TRANSLATORS: Second %s is a type name (gid_t,uid_t,etc.) */
This page took 0.021921 seconds and 4 git commands to generate.