projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76b9399
)
(main): Use a `%s' format in error call,
author
Jim Meyering
<jim@meyering.net>
Sun, 7 Mar 1999 04:52:49 +0000
(
04:52
+0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 7 Mar 1999 04:52:49 +0000
(
04:52
+0000)
in case the argument string contains a `%'.
src/fmt.c
patch
|
blob
|
history
src/sort.c
patch
|
blob
|
history
diff --git
a/src/fmt.c
b/src/fmt.c
index 7aa97388555f523add06ca068208118f682ba454..d27a4d8f4a22cd9196ff97e99ea67a9d4a87f7fd 100644
(file)
--- a/
src/fmt.c
+++ b/
src/fmt.c
@@
-397,10
+397,10
@@
main (register int argc, register char **argv)
{
fmt (in_stream);
if (fclose (in_stream) == EOF)
- error (EXIT_FAILURE, errno, file);
+ error (EXIT_FAILURE, errno,
"%s",
file);
}
else
- error (0, errno, file);
+ error (0, errno,
"%s",
file);
}
}
}
diff --git
a/src/sort.c
b/src/sort.c
index 69a4332a4752d7c5edce8a555e28c3b58fd70a3e..ee0514b7698be4f377e9a59e9f870cc7761c3448 100644
(file)
--- a/
src/sort.c
+++ b/
src/sort.c
@@
-2961,7
+2961,7
@@
but lacks following character offset"));
error (SORT_FAILURE, errno, _("%s: write error"), outfile);
if (have_read_stdin && fclose (stdin) == EOF)
- error (SORT_FAILURE, errno, outfile);
+ error (SORT_FAILURE, errno,
"%s",
outfile);
if (ferror (stdout) || fclose (stdout) == EOF)
error (SORT_FAILURE, errno, _("%s: write error"), outfile);