$OpenBSD: patch-base_utils_c,v 1.2 2008/07/01 06:03:58 sturm Exp $
--- base/utils.c.orig	Mon Jun 23 22:47:41 2008
+++ base/utils.c	Mon Jun 30 20:26:25 2008
@@ -3483,7 +3483,7 @@ char *mmap_fgets_multiline(mmapfile *temp_mmapfile){
 			}
 
 		/* one backslash found, so we should continue reading the next line */
-		else if(buf[end]=='\\')
+		else if(end>=0 && buf[end]=='\\')
 			buf[end]='\x0';
 
 		/* else no continuation marker was found, so break */
