Post r15: Allow spaces in filename for vadpcm_enc

This commit is contained in:
AloXado320 2021-12-30 21:20:23 -05:00
parent 908e8fc16d
commit b33d829f07

View file

@ -56,7 +56,11 @@ int main(int argc, char **argv)
ALADPCMloop *aloops;
Marker *markers;
CodeChunk cChunk;
#ifdef __sgi
char filename[1024];
#else
const char *filename;
#endif
FILE *fhandle;
FILE *ifile;
FILE *ofile;
@ -72,7 +76,12 @@ int main(int argc, char **argv)
switch (c)
{
case 'c':
#ifdef __sgi
if (sscanf(optarg, "%s", filename) == 1)
#else
// Allow filenames with spaces
filename = optarg;
#endif
{
if ((fhandle = fopen(filename, "r")) == NULL)
{