login-utils: remove unwanted newlines from wall
Prevent wall from adding an empty newline to every new line. Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
65c381e984
commit
529bdd94f4
|
@ -221,7 +221,8 @@ makemsg(fname)
|
||||||
putc('\n', fp);
|
putc('\n', fp);
|
||||||
cnt = 0;
|
cnt = 0;
|
||||||
}
|
}
|
||||||
carefulputc(ch, fp);
|
if (ch != '\n')
|
||||||
|
carefulputc(ch, fp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fprintf(fp, "%79s\r\n", " ");
|
fprintf(fp, "%79s\r\n", " ");
|
||||||
|
|
Loading…
Reference in New Issue