# HG changeset patch # User viric@llimona # Date 1148944200 -7200 # Node ID 667cd5966695a61da797309d444734949affb575 # Parent 3af277b9f73b0c5cbd19a67c60bd975cc053dc68 Finer message processing - now only at file and screen output appear '\n'. diff -r 3af277b9f73b -r 667cd5966695 out_file.c --- a/out_file.c Tue May 30 00:57:22 2006 +0200 +++ b/out_file.c Tue May 30 01:10:00 2006 +0200 @@ -52,13 +52,14 @@ /* Return -2 when the file is not enabled. Otherwise, the output of send().*/ int write_out_file(const char * restrict buf, const int len) { - int res; + int res, res2; if (!file_enabled) return -2; res = write(out_file, buf, len); - if (res == -1) + res2 = write(out_file, "\n", 1); + if (res == -1 || res2 == -1) { fprintf(stderr, "Error writing to the log file: %s\n", strerror(errno)); diff -r 3af277b9f73b -r 667cd5966695 rfc3164.c --- a/rfc3164.c Tue May 30 00:57:22 2006 +0200 +++ b/rfc3164.c Tue May 30 01:10:00 2006 +0200 @@ -7,7 +7,7 @@ int process_message(char * restrict buffer) { int i; - char message[MESSAGE_LENGTH+1]; + /* char message[MESSAGE_LENGTH+1]; */ for(i=0; i