ls: printf("%s", s) -> fputs(s, stdout)

This commit is contained in:
Hiltjo Posthuma
2015-09-06 22:36:01 +02:00
committed by sin
parent 874d131728
commit aba450fd1a
2 changed files with 2 additions and 2 deletions

2
sed.c
View File

@@ -1326,7 +1326,7 @@ cmd_l(Cmd *c)
*/
for (p = patt.str, end = p + strlen(p); p < end; p += rlen) {
if (isascii(*p) && escapes[(unsigned int)*p]) {
printf("%s", escapes[(unsigned int)*p]);
fputs(escapes[(unsigned int)*p], stdout);
rlen = 1;
} else if (!(rlen = charntorune(&r, p, end - p))) {
/* ran out of chars, print the bytes of the short sequence */