Changes to ticket 40df1ced7e
By anonymous on 2009-06-24 12:53:43. See also: artifact content, and ticket history
- Appended to comment:
anonymous claiming to be Twylite added on 2009-06-24 12:53:43:
I think I posted that patch as 'pre' instead of 'verbatim'. To safe a lot of frustration if you didn't notice the [bad-link:0] in there, here's a better copy:--- src/http_transport.c +++ src/http_transport.c @@ -140,14 +140,21 @@ /* ** This routine is called when the outbound message is complete and ** it is time to being recieving a reply. */ void transport_flip(void){ +#ifdef __MINGW32__ + /* If a command begins with a quote, cmd.exe will strip the leading char + * and the last quote char on the line. See 'cmd /?' */ + char* cmdformat = "\"\"%s\" http \"%s\" \"%s\" \"%s\" 127.0.0.1\""; +#else + char* cmdformat = "\"%s\" http \"%s\" \"%s\" \"%s\" 127.0.0.1"; +#endif if( g.urlIsFile ){ char *zCmd; fclose(transport.pFile); - zCmd = mprintf("\"%s\" http \"%s\" \"%s\" \"%s\" 127.0.0.1", + zCmd = mprintf(cmdformat, g.argv[0], g.urlName, transport.zOutFile, transport.zInFile ); system(zCmd); free(zCmd); transport.pFile = fopen(transport.zInFile, "rb");