[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] [PATCH 1/2] tar: don't truncate diagnostic
From: |
Paul Eggert |
Subject: |
[Bug-tar] [PATCH 1/2] tar: don't truncate diagnostic |
Date: |
Tue, 18 Dec 2012 20:44:05 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
* src/list.c (from_header): Fix buffer size calculation when
generating a diagnostic.
---
src/list.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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.)
*/
--
1.7.11.7
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-tar] [PATCH 1/2] tar: don't truncate diagnostic,
Paul Eggert <=