Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP1:Update
gramofile
20-shell-quoting.dpatch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 20-shell-quoting.dpatch of Package gramofile
#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);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor