Open the file for writing (doh)
git-svn-id: svn://10.0.0.236/trunk@7685 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user