eel

formatter for ii(1) logs
Log | Files | Refs | README

commit 34bcc78966e42ca5d71bc7e1ddf74e845e59197d
parent c69a91b357c89c1656524ef829124153fc1ff942
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed,  6 Jun 2018 00:36:03 +0200

fix newline printing

Diffstat:
Meel.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eel.c b/eel.c @@ -33,7 +33,7 @@ print_row(char *time, char *nick, char *msg) puts(msg); return blank + 1; tail: - fputs(msg, stdout); + puts(msg); return NULL; } @@ -86,7 +86,7 @@ main(void) while (fgets(line, sizeof(line), stdin) != NULL) { line[strcspn(line, "\n")] = '\0'; if (parse_msg(line, &time, &nick, &msg) < 0) { - printf("%s\n", line); + puts(line); } else { print_msg(time, nick, strcmp(nick, last) == 0, msg); strncpy(last, nick, sizeof(last) - 1);