=== modified file 'src/http.c' --- src/http.c 2011-02-23 09:37:48 +0000 +++ src/http.c 2011-03-01 16:22:08 +0000 @@ -3501,7 +3501,7 @@ if (len == 5) { strncpy (shortext, ext, len - 1); - shortext[len - 2] = '\0'; + shortext[len - 1] = '\0'; } if (last_period_in_local_filename == NULL