Ticket #33743: patch-src-formats.c.diff
File patch-src-formats.c.diff, 847 bytes (added by janstary (Jan Starý), 13 years ago) |
---|
-
src/formats.c
old new static int sox_checkformat(sox_format_t 348 348 return SOX_SUCCESS; 349 349 } 350 350 351 static sox_bool is_url(char const * text) /* detects only wget-supported URLs */351 static sox_bool is_url(char const * text) 352 352 { 353 353 return !( 354 354 strncasecmp(text, "http:" , (size_t)5) && … … static FILE * xfopen(char const * identi 385 385 else if (is_url(identifier)) { 386 386 FILE * f = NULL; 387 387 #ifdef HAVE_POPEN 388 char const * const command_format = " wget --no-check-certificate -q -O- \"%s\"";388 char const * const command_format = "ftp -a -V -o - \"%s\""; 389 389 char * command = lsx_malloc(strlen(command_format) + strlen(identifier)); 390 390 sprintf(command, command_format, identifier); 391 391 f = popen(command, POPEN_MODE);