]> sjero.net Git - wget/blobdiff - src/http.c
[svn] Open the output file in binary mode.
[wget] / src / http.c
index 5f2215957be8540fa90779f9cf758099221b6b58..e3440d8a5e436cf75f9f809e8f43dd70e70c885e 100644 (file)
@@ -1803,7 +1803,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
        fp = fopen (*hs->local_file, "wb");
       else
        {
-         fp = fopen_excl (*hs->local_file, 0);
+         fp = fopen_excl (*hs->local_file, 1);
          if (!fp && errno == EEXIST)
            {
              /* We cannot just invent a new name and use it (which is