]> sjero.net Git - wget/blobdiff - src/http.c
Do not adjust the extension if the file ends in .htm.
[wget] / src / http.c
index b4f1667b6e597b0bf6972a0466e658b3bda3a6ef..d7e55ca824318747f447d6fa4d2be5748c87db78 100644 (file)
@@ -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