Loading src/main.c +21 −12 Original line number Diff line number Diff line Loading @@ -2657,6 +2657,11 @@ operate(struct Configurable *config, int argc, char *argv[]) else filep = config->infile; /* URL encode the file name */ filep = curl_escape(filep, 0 /* use strlen */); if(filep) { urlbuffer=(char *)malloc(strlen(url) + strlen(filep) + 3); if(!urlbuffer) { helpf("out of memory\n"); Loading @@ -2669,8 +2674,12 @@ operate(struct Configurable *config, int argc, char *argv[]) /* thers is no trailing slash on the URL */ sprintf(urlbuffer, "%s/%s", url, filep); curl_free(filep); free(url); url = urlbuffer; /* use our new URL instead! */ } } /*VMS??-- Reading binary from files can be a problem... */ /*VMS?? Only FIXED, VAR etc WITHOUT implied CC will work */ /*VMS?? Others need a \n appended to a line */ Loading Loading
src/main.c +21 −12 Original line number Diff line number Diff line Loading @@ -2657,6 +2657,11 @@ operate(struct Configurable *config, int argc, char *argv[]) else filep = config->infile; /* URL encode the file name */ filep = curl_escape(filep, 0 /* use strlen */); if(filep) { urlbuffer=(char *)malloc(strlen(url) + strlen(filep) + 3); if(!urlbuffer) { helpf("out of memory\n"); Loading @@ -2669,8 +2674,12 @@ operate(struct Configurable *config, int argc, char *argv[]) /* thers is no trailing slash on the URL */ sprintf(urlbuffer, "%s/%s", url, filep); curl_free(filep); free(url); url = urlbuffer; /* use our new URL instead! */ } } /*VMS??-- Reading binary from files can be a problem... */ /*VMS?? Only FIXED, VAR etc WITHOUT implied CC will work */ /*VMS?? Others need a \n appended to a line */ Loading