Charlie Hedlin - 2007-10-03

Logged In: YES
user_id=990859
Originator: YES

The above code change was too anoying, so I revised it to

===================================================================
RCS file: /cvsroot/middle-man/middleman/src/log.c,v
retrieving revision 1.31
diff -u -r1.31 log.c
--- log.c 2 Apr 2004 14:31:37 -0000 1.31
+++ log.c 3 Oct 2007 17:11:43 -0000
@@ -145,6 +145,8 @@
logbuffer_add(global->logbuffer, buf);

if (*(ptr - 1) != '\n') {
+ if ((ptr - buf) >= sizeof(buf))
+ ptr--;
*(ptr++) = '\n';
*ptr = '\0';
}