scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 0b7fc96dba8a0b2c423cd2d554161e26ceb17f7b
parent 5bb6d19f73d6504a46ed55e16f357ade07e709f3
Author: Quentin Rameau <quinq@fifth.space>
Date:   Thu, 10 Jan 2019 17:17:27 +0100

[ar] Fix a few error strings

Diffstat:
Msrc/cmd/ar.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/cmd/ar.c b/src/cmd/ar.c @@ -120,9 +120,9 @@ archive(char *pname, FILE *to, char letter) if (vflag) printf("%c - %s\n", letter, fname); if (strlen(fname) > 16) - fprintf(stderr, "ar:%s: too long name\n", fname); + fprintf(stderr, "ar: %s: name too long, truncated\n", fname); if ((from = fopen(pname, "rb")) == NULL) - error("opening member '%s':%s\n", pname, errstr()); + error("opening member '%s': %s", pname, errstr()); if (getstat(pname, &prop) < 0) error("error getting '%s' attributes", pname); strftime(mtime, sizeof(mtime), "%s", gmtime(&prop.time)); @@ -139,7 +139,7 @@ archive(char *pname, FILE *to, char letter) if (n & 1) putc('\n', to); if (ferror(from)) - error("reading input '%s':%s", pname, errstr()); + error("reading input '%s': %s", pname, errstr()); fclose(from); }