aboutsummaryrefslogtreecommitdiffstats
path: root/common.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-04 11:43:51 +0200
committerMattias Andrée <maandree@kth.se>2021-09-04 11:43:51 +0200
commitde1f09554650ff4f22ff4d6e0ab222a7d08525c8 (patch)
tree73df3157dc5a967a3ddfd87cd02362580492f592 /common.c
parentUse MSG_PEEK instead of sending unnecessary data (diff)
downloadeditasroot-de1f09554650ff4f22ff4d6e0ab222a7d08525c8.tar.gz
editasroot-de1f09554650ff4f22ff4d6e0ab222a7d08525c8.tar.bz2
editasroot-de1f09554650ff4f22ff4d6e0ab222a7d08525c8.tar.xz
Add missing newline to end of error prints
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.c')
-rw-r--r--common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common.c b/common.c
index 5379f89..5add5a1 100644
--- a/common.c
+++ b/common.c
@@ -24,7 +24,7 @@ copy_file(int destfd, const char *destfname, int srcfd, const char *srcfname, in
if (r <= 0) {
if (!r)
break;
- fprintf(stderr, "%s: read %s: %s", argv0, srcfname, strerror(errno));
+ fprintf(stderr, "%s: read %s: %s\n", argv0, srcfname, strerror(errno));
exit(1);
}
@@ -37,7 +37,7 @@ copy_file(int destfd, const char *destfname, int srcfd, const char *srcfname, in
for (p = ok_off; p < r; p += w) {
w = write(destfd, buf, (size_t)(r - p));
if (r <= 0) {
- fprintf(stderr, "%s: write %s: %s", argv0, destfname, strerror(errno));
+ fprintf(stderr, "%s: write %s: %s\n", argv0, destfname, strerror(errno));
exit(1);
}
}
@@ -46,7 +46,7 @@ copy_file(int destfd, const char *destfname, int srcfd, const char *srcfname, in
if (!okp) {
w = write(destfd, buf, 1);
if (r <= 0) {
- fprintf(stderr, "%s: write %s: %s", argv0, destfname, strerror(errno));
+ fprintf(stderr, "%s: write %s: %s\n", argv0, destfname, strerror(errno));
exit(1);
}
}