summaryrefslogtreecommitdiff
path: root/usr.bin/xstr
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2004-07-15 04:56:41 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2004-07-15 04:56:41 +0000
commitd88ccf5dca3240d0c688e1ad5ae27305a48c7af9 (patch)
tree4937ec93d4f8a192a8b662f375ef3bd354864f7f /usr.bin/xstr
parentdb8714af5285f03c779ba03e54c2539f146f89bd (diff)
downloadsrc-test2-d88ccf5dca3240d0c688e1ad5ae27305a48c7af9.tar.gz
src-test2-d88ccf5dca3240d0c688e1ad5ae27305a48c7af9.zip
Notes
Diffstat (limited to 'usr.bin/xstr')
-rw-r--r--usr.bin/xstr/xstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/xstr/xstr.c b/usr.bin/xstr/xstr.c
index 6195ff2b3536..7ea87832251d 100644
--- a/usr.bin/xstr/xstr.c
+++ b/usr.bin/xstr/xstr.c
@@ -375,7 +375,7 @@ flushsh(void)
return;
mesgwrit = fopen(strings, old ? "r+" : "w");
if (mesgwrit == NULL)
- perror(strings), exit(4);
+ err(4, "%s", strings);
for (i = 0; i < BUCKETS; i++)
for (hp = bucket[i].hnext; hp != NULL; hp = hp->hnext) {
found(hp->hnew, hp->hpt, hp->hstr);