diff options
author | Nick White <git@njw.me.uk> | 2011-11-30 18:55:47 +0000 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2011-11-30 18:55:47 +0000 |
commit | 750f41033d1e8eb0a0c6ba4401e685b378ac3ae6 (patch) | |
tree | d4b8204055524e91cd852d9673d77eccdc406975 /getbnbook.c | |
parent | 83adb758f73ebc6a6c09b7dee82e139317b7ad0a (diff) |
Use appropriate file extensions when saving
Diffstat (limited to 'getbnbook.c')
-rw-r--r-- | getbnbook.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/getbnbook.c b/getbnbook.c index 76e3e0e..5254f14 100644 --- a/getbnbook.c +++ b/getbnbook.c @@ -83,6 +83,7 @@ int getpage(int pagenum) fprintf(stderr, "%d failed\n", pagenum); return 1; } + renameifjpg(path); printf("%d downloaded\n", pagenum); fflush(stdout); |