openbsd-ports/audio/ascd/patches/patch-faktory_c
wilfried f4429914ec Import of ascd-0.13.2 (from freebsd-ports)
ascd is a CD player that can be "docked" on the Afterstep Wharf or the
Window Maker dock.

ok naddy@
2001-02-06 11:52:43 +00:00

16 lines
817 B
Plaintext

$OpenBSD: patch-faktory_c,v 1.1.1.1 2001/02/06 11:52:44 wilfried Exp $
--- faktory.c.orig Mon Jul 5 18:52:38 1999
+++ faktory.c Sat Feb 3 16:20:44 2001
@@ -58,9 +58,9 @@ int fak_parse_line(char *ligne, char *ke
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);