summaryrefslogtreecommitdiff
path: root/download.c
diff options
context:
space:
mode:
Diffstat (limited to 'download.c')
-rw-r--r--download.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/download.c b/download.c
index c099c1f..099a65f 100644
--- a/download.c
+++ b/download.c
@@ -112,7 +112,7 @@ void save_file(CURL *curl_handle, char *url, char *filepath)
*/
fclose(file);
- printf("\r");
+ printf("\n");
}
else {
fprintf(stderr,"Error: curl failed to initialise.\n");
@@ -152,7 +152,8 @@ void downloadissue(CURL *curl_handle, char * directory, iss * issue, int force)
scanf("%s", newdir); /* TODO: incorporate tab-completion */
}
- if(issue->cover.title[0])
+ /* not reliable - workaround until malloc is completed */
+ if(!strncmp(issue->cover.uri, "http://www.", 11))
{
snprintf(filename,STR_MAX,"%s/cover.pdf", newdir);
if(!force){