X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhttp.c;h=d7e55ca824318747f447d6fa4d2be5748c87db78;hp=b4f1667b6e597b0bf6972a0466e658b3bda3a6ef;hb=bb6a72caea0c1700ce8d0deff641f3e9b5e84127;hpb=09bc5b5787a763413cf3dec387fa6f3698798241 diff --git a/src/http.c b/src/http.c index b4f1667b..d7e55ca8 100644 --- a/src/http.c +++ b/src/http.c @@ -3501,7 +3501,7 @@ ensure_extension (struct http_stat *hs, const char *ext, int *dt) if (len == 5) { strncpy (shortext, ext, len - 1); - shortext[len - 2] = '\0'; + shortext[len - 1] = '\0'; } if (last_period_in_local_filename == NULL