$OpenBSD: patch-faktory_c,v 1.2 2013/04/25 16:26:52 sthen Exp $
--- faktory.c.orig	Mon Jul  5 17:52:38 1999
+++ faktory.c	Thu Apr 25 17:26:18 2013
@@ -58,9 +58,9 @@ int fak_parse_line(char *ligne, char *key, char *argum
     unsigned int pos = 0;
 
     if ((strlen(ligne) > 0) && (ligne[0] != '#')) {
-	while ((ligne[pos] != ' ') && (ligne[pos] != 9)) pos++;
+	while (ligne[pos] && (ligne[pos] != ' ') && (ligne[pos] != '\t')) pos++;
 	tes_sncpy(key, ligne, pos);
-	while (((ligne[pos] == ' ') || (ligne[pos] == 9)) && (pos < strlen(ligne))) pos++;
+	while (ligne[pos] && ((ligne[pos] == ' ') || (ligne[pos] == '\t'))) pos++;
 	if (pos < strlen(ligne)) strcpy(arguments, ligne + pos);
 	else strcpy(arguments, "");
 	if (debug > 2) fprintf(stderr,"++ input: [%s]\n   key:   [%s]\n   args:  [%s]\n", ligne, key, arguments);
