зеркало из https://github.com/mozilla/pjs.git
Open the file for writing (doh)
This commit is contained in:
Родитель
4f64885dcd
Коммит
9ff4cf6e85
|
@ -209,7 +209,10 @@ PageGrabber::Grab(const nsString& aURL)
|
|||
if (nsnull == cname) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
FILE* fp = fopen(cname, "rb");
|
||||
FILE* fp = fopen(cname, "wb");
|
||||
if (nsnull == fp) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
printf("Copying ");
|
||||
fputs(aURL, stdout);
|
||||
printf(" to %s\n", cname);
|
||||
|
|
|
@ -209,7 +209,10 @@ PageGrabber::Grab(const nsString& aURL)
|
|||
if (nsnull == cname) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
FILE* fp = fopen(cname, "rb");
|
||||
FILE* fp = fopen(cname, "wb");
|
||||
if (nsnull == fp) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
printf("Copying ");
|
||||
fputs(aURL, stdout);
|
||||
printf(" to %s\n", cname);
|
||||
|
|
Загрузка…
Ссылка в новой задаче