Files
gramofile/20-shell-quoting.dpatch
Philipp Thomas 3b1d43ea20 - Add all patches from debian that we don't already have:
20-overflow-fixes.dpatch
  20-shell-quoting.dpatch
  20-via-kludge.dpatch
  20-warning-fixes.dpatch
  30-basename-fix.dpatch
  40-fast-swap-and-buffer.dpatch
  50-cmf3.dpatch
  60-bplay_in_gramo.dpatch
  70-endian-fixes.dpatch
  91_rename_cdrecord_wodim.dpatch
  70-endian-fixes.dpatch is the most important one as it fixes
  endianess bugs as well as making 64 bit binaries work again.

OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/gramofile?expand=0&rev=7
2012-04-24 13:09:39 +00:00

45 lines
1.7 KiB
Plaintext

#Patch by Jon Schewe <jpschewe@eggplant.mtu.net>
--- playwav.c 2011-08-14 13:21:45.809217714 +0200
+++ playwav.c 2011-08-14 13:27:14.941717336 +0200
@@ -44,11 +44,11 @@
case FILE_EXISTS:
if (usebeginendtime)
- sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 -J %ld -T %ld %s",
+ sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 -J %ld -T %ld \"%s\"",
(long) (begintime * 44100),
(long) ((endtime - begintime) * 44100), filename);
else
- sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 %s", filename);
+ sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 \"%s\"", filename);
/* defaults for raw files (but no -r, so .wav's supply their own
parameters) - you can even listen to executables in CD quality (: */
@@ -771,11 +771,11 @@
def_prog_mode (); /* save terminal state */
if (usebeginendtime)
- sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 -J %ld -T %ld %s",
+ sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 -J %ld -T %ld \"%s\"",
(long) (begintime * 44100),
(long) ((endtime - begintime) * 44100), filename);
else
- sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 %s", filename);
+ sprintf (shellcmd, "bplay_gramo -S -s 44100 -b 16 \"%s\"", filename);
/* defaults for raw files (but no -r, so .wav's supply their own
parameters */
--- reclp_main.c 2011-08-14 13:21:45.817217244 +0200
+++ reclp_main.c 2011-08-14 13:27:14.941717336 +0200
@@ -30,7 +30,7 @@
def_prog_mode (); /* save terminal state */
- sprintf (shellcmd, "brec_gramo -S -s 44100 -b 16 -t 6000 -w %s",
+ sprintf (shellcmd, "brec_gramo -S -s 44100 -b 16 -t 6000 -w \"%s\"",
filename);
system (shellcmd);