/*
- * $Id: file.c,v 1.9 2002-01-04 04:45:47 sibaz Exp $
+ * $Id: file.c,v 1.9.12.1 2009-02-03 08:25:00 didg Exp $
*
* Copyright (c) 1990,1994 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
#include "file.h"
+/*
+*/
int markline( pf, start, linelength, crlflength )
char **start;
int *linelength, *crlflength;
(p[*crlflength]=='\r' || p[*crlflength]=='\n')) {
(*crlflength)++;
}
+
+ if (!*crlflength) {
+ /* line is way too long, something fishy is going on, give up */
+ LOG(log_error, logtype_papd, "markline: no crlf in comment, give up" );
+ return( -2 );
+ }
/* success, return 1 */
return( 1 );