changeset 251:806fcdd3b5da

[/trunk] Changeset 264 by mikael * Ok, yet another stupid typo (arf-arf...). Now it compiles ;) * Cosmetic comment move
author mikael
date Sat, 25 Jun 2005 08:40:00 +0000
parents 84de80cbbd2c
children cb7f944741e4
files mcabber/src/histolog.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/histolog.c	Sat Jun 25 08:35:50 2005 +0000
+++ b/mcabber/src/histolog.c	Sat Jun 25 08:40:00 2005 +0000
@@ -199,12 +199,11 @@
     }
     // Small check for too long messages
     if (tail >= HBB_BLOCKSIZE+18+format_off + data) {
-      scr_LogPrint("A message could be too big in history file...");
-                   tail-data-format_off-18);
       // Maybe we will have a parse error on next, because this
       // message is big (maybe too big).
+      scr_LogPrint("A message could be too big in history file...");
     }
-    // Remove last CR
+    // Remove last CR (we keep it if the line is empty, too)
     if ((tail > data+18+format_off) && (*(tail-1) == '\n'))
       *(tail-1) = 0;