summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-11-13 19:30:26 +0000
committerrillig <rillig@pkgsrc.org>2007-11-13 19:30:26 +0000
commit32b2e77b19e69599aaeff79f8b4ec6f51aa4b2f4 (patch)
treec9b3b8e91bb512b222ae9926bb643a5836d70c4c /pkgtools
parent3ff70ae2ade658336742c737e038d698769e69c6 (diff)
downloadpkgsrc-32b2e77b19e69599aaeff79f8b4ec6f51aa4b2f4.tar.gz
There are several error messages with the same words. To make finding
the cause easier, add more information to one of them.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pbulk/files/pbulk/lib/read_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pbulk/files/pbulk/lib/read_file.c b/pkgtools/pbulk/files/pbulk/lib/read_file.c
index 473271c8225..b25412cfff4 100644
--- a/pkgtools/pbulk/files/pbulk/lib/read_file.c
+++ b/pkgtools/pbulk/files/pbulk/lib/read_file.c
@@ -1,4 +1,4 @@
-/* $NetBSD: read_file.c,v 1.2 2007/06/25 21:38:44 joerg Exp $ */
+/* $NetBSD: read_file.c,v 1.3 2007/11/13 19:30:26 rillig Exp $ */
/*-
* Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
@@ -67,7 +67,7 @@ read_from_file(int fd)
input[input_len] = '\0';
if (strlen(input) != input_len)
- errx(1, "Invalid input");
+ errx(1, "Invalid input (NUL character found)");
return input;
}