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:
Karel Zak 2007-07-16 14:41:28 +02:00
parent 65c381e984
commit 529bdd94f4
1 changed files with 2 additions and 1 deletions

View File

@ -221,7 +221,8 @@ makemsg(fname)
putc('\n', fp);
cnt = 0;
}
carefulputc(ch, fp);
if (ch != '\n')
carefulputc(ch, fp);
}
}
fprintf(fp, "%79s\r\n", " ");