$OpenBSD: patch-vfs_extfs_c,v 1.1 2005/02/17 21:59:11 robert Exp $
--- vfs/extfs.c.orig	Thu Feb 17 22:31:24 2005
+++ vfs/extfs.c	Thu Feb 17 22:32:43 2005
@@ -1281,14 +1281,13 @@
 	    g_free (mc_extfsini);
 	    return 0;
 	}
-	if (*key == '#')
+	if (*key == '#' || *key == '\n')
 	    continue;
 
 	if ((c = strchr (key, '\n'))){
-	    *c = 0;
+	    *c-- = 0;
+	} else {	/* Last line without newline or strlen (key) > 255 */
 	    c = &key [strlen (key) - 1];
-	} else {
-	    c = key;
 	}
 	extfs_need_archive [extfs_no] = !(*c == ':');
 	if (*c == ':')
