diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-05-30 22:35:03 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-05-30 22:35:03 +0000 |
commit | dd5602f59b599177fb130512fc543f7efa951990 (patch) | |
tree | 93f50c0abbbc61dbea120afb6f497afe6b976fea /Src/input.c | |
parent | fd240e09b05ca15aa1deef35733124b6852fe809 (diff) | |
download | zsh-dd5602f59b599177fb130512fc543f7efa951990.tar.gz zsh-dd5602f59b599177fb130512fc543f7efa951990.tar.xz zsh-dd5602f59b599177fb130512fc543f7efa951990.zip |
22474: use variable argument lists to improve error message handling
Diffstat (limited to 'Src/input.c')
-rw-r--r-- | Src/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/input.c b/Src/input.c index 546ed2f6a..99db53e54 100644 --- a/Src/input.c +++ b/Src/input.c @@ -419,7 +419,7 @@ stuff(char *fn) off_t len; if (!(in = fopen(unmeta(fn), "r"))) { - zerr("can't open %s", fn, 0); + zerr("can't open %s", fn); return 1; } fseek(in, 0, 2); @@ -427,7 +427,7 @@ stuff(char *fn) fseek(in, 0, 0); buf = (char *)zalloc(len + 1); if (!(fread(buf, len, 1, in))) { - zerr("read error on %s", fn, 0); + zerr("read error on %s", fn); fclose(in); zfree(buf, len + 1); return 1; |