1 $NetBSD: patch-af,v 1.1 2004/01/02 16:17:40 cjep Exp $
2 --- cmp3listfiles.c.orig 2001-06-13 20:13:16.000000000 +0000
9 +#include "cmp3funcs.h"
13 @@ -121,7 +121,7 @@ void readm3u(FILE *infile)
15 char buffer[MAX_FULL];
17 - while (getline(buffer, MAX_FULL, infile) == 1) {
18 + while (cmp3_getline(buffer, MAX_FULL, infile) == 1) {
21 if (doConversions(buffer) == 1)
22 @@ -134,7 +134,7 @@ void readpls(FILE *infile)
23 char buffer[MAX_FULL],
26 - while (getline(buffer, MAX_FULL, infile) == 1) {
27 + while (cmp3_getline(buffer, MAX_FULL, infile) == 1) {
28 if ((buffer[0] == '[') || (buffer[0] == '#'))
30 if (!Strncmp(buffer, "file", 4)) {
31 @@ -269,15 +269,14 @@ void writelist(char *filepath)
33 /* XXX - alert person */
36 -"##############################################################################
37 -# Dumped Cmp3 playlist ass file
39 -# Addable features (on individual lines):
40 -# %%[command] - executes commands initially using system() call
41 -# @ - randomizes this playlist at load time
42 -# $ - turns on repeat mode at load time
44 +fprintf(outfile, "##############################################################################\n");
45 +fprintf(outfile, "# Dumped Cmp3 playlist ass file\n");
46 +fprintf(outfile, "#\n");
47 +fprintf(outfile, "# Addable features (on individual lines):\n");
48 +fprintf(outfile, "# %%[command] - executes commands initially using system() call\n");
49 +fprintf(outfile, "# @ - randomizes this playlist at load time\n");
50 +fprintf(outfile, "# $ - turns on repeat mode at load time\n");
51 +fprintf(outfile, "#\n\n");
53 filename = shmptr->plhead;
54 for(i=0; i < shmptr->listlen; i++) {