1#Patch by Jon Schewe <jpschewe@eggplant.mtu.net>
2#PATCHOPTIONS: -p1
3diff -ur gramofile-1.6P.orig/playwav.c gramofile-1.6P/playwav.c
4--- gramofile-1.6P.orig/playwav.c	Tue Mar 28 15:07:25 2000
5+++ gramofile-1.6P/playwav.c	Wed Dec 27 11:17:25 2000
6@@ -44,11 +44,11 @@
7     case FILE_EXISTS:
8
9       if (usebeginendtime)
10-	sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 -J %ld -T %ld %s",
11+	sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 -J %ld -T %ld \"%s\"",
12 		 (long) (begintime * 44100),
13 		 (long) ((endtime - begintime) * 44100), filename);
14       else
15-	sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 %s", filename);
16+	sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 \"%s\"", filename);
17       /* defaults for raw files (but no -r, so .wav's supply their own
18          parameters) - you can even listen to executables in CD quality (: */
19
20@@ -771,11 +771,11 @@
21       def_prog_mode ();		/* save terminal state */
22
23       if (usebeginendtime)
24-	sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 -J %ld -T %ld %s",
25+	sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 -J %ld -T %ld \"%s\"",
26 		 (long) (begintime * 44100),
27 		 (long) ((endtime - begintime) * 44100), filename);
28       else
29-	sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 %s", filename);
30+	sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 \"%s\"", filename);
31       /* defaults for raw files (but no -r, so .wav's supply their own
32          parameters */
33
34diff -ur gramofile-1.6P.orig/reclp_main.c gramofile-1.6P/reclp_main.c
35--- gramofile-1.6P.orig/reclp_main.c	Tue Mar 28 15:07:25 2000
36+++ gramofile-1.6P/reclp_main.c	Wed Dec 27 01:17:45 2000
37@@ -30,7 +30,7 @@
38
39   def_prog_mode ();		/* save terminal state */
40
41-  sprintf (shellcmd, "brec_gramo -S -s 44100 -b 16 -t 6000 -w %s",
42+  sprintf (shellcmd, "brec_gramo -S -s 44100 -b 16 -t 6000 -w \"%s\"",
43 	   filename);
44   system (shellcmd);
45
46