b9da6cc452aa04f605f88fbbd368d05742538f9e max Wed Apr 2 03:00:08 2014 -0700 fixing an error message diff --git src/lib/paraFetch.c src/lib/paraFetch.c index 48a6355..b0949a9 100644 --- src/lib/paraFetch.c +++ src/lib/paraFetch.c @@ -357,31 +357,31 @@ } if (progress) { char nicenumber[1024]=""; sprintWithGreekByte(nicenumber, sizeof(nicenumber), fileSize); printf("downloading %s ", nicenumber); fflush(stdout); starStep = fileSize/starMax; if (starStep < 1) starStep = 1; } int out = open(outPath, O_CREAT|O_WRONLY, 0664); if (out < 0) { - warn("Unable to open %s for write while downloading %s, can't proceed, sorry", url, outPath); + warn("Unable to open %s for write while downloading %s, can't proceed, sorry", outPath, url); return FALSE; } /* descriptors for select() */ fd_set rfds; struct timeval tv; int retval; ssize_t readCount = 0; #define BUFSIZE 65536 * 4 char buf[BUFSIZE]; /* create paraFetchStatus right away for monitoring programs */ paraFetchWriteStatus(origPath, pcList, url, fileSize, dateString, FALSE);