From: Paul Eggert Date: Thu, 13 Dec 2012 22:16:04 +0000 (-0800) Subject: tar: don't truncate diagnostic X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=8c0146d2c954c2b63e94695c95f0c7d56cc629ca;p=chaz%2Ftar tar: don't truncate diagnostic * src/list.c (from_header): Fix buffer size calculation when generating a diagnostic. --- diff --git a/src/list.c b/src/list.c index f2605ad..7bb719f 100644 --- a/src/list.c +++ b/src/list.c @@ -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.) */