From 4ab4758e01571f7dd8a0e6878149783128bb9e2c Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sat, 14 Dec 2013 03:52:20 +0100 Subject: dpkg-deb, dpkg: Unify and clarify conffile name length error message Clarify the error message, by stating it's either too long or missing a final newline, and unify it to be the same on both dpkg-deb and dpkg. Closes: #108196 --- src/unpack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/unpack.c b/src/unpack.c index 51efbafd7..66b872fff 100644 --- a/src/unpack.c +++ b/src/unpack.c @@ -629,8 +629,8 @@ void process_archive(const char *filename) { p= conffilenamebuf + strlen(conffilenamebuf); assert(p != conffilenamebuf); if (p[-1] != '\n') - ohshit(_("name of conffile (starting `%.250s') is too long (>%d characters)"), - conffilenamebuf, MAXCONFFILENAME); + ohshit(_("conffile name '%s' is too long, or missing final newline"), + conffilenamebuf); while (p > conffilenamebuf && isspace(p[-1])) --p; if (p == conffilenamebuf) continue; *p = '\0'; -- cgit v1.2.3