Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: chrome/browser/spellchecker.cc

Issue 7484: [chromium-reviews] Fix a potential crasher in SpellChecker Add to dictionary feature.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/spellchecker.cc
===================================================================
--- chrome/browser/spellchecker.cc (revision 3468)
+++ chrome/browser/spellchecker.cc (working copy)
@@ -510,7 +510,8 @@
// or not.
word_ += "\n";
FILE* f = file_util::OpenFile(file_name_, "a+");
- fputs(word_.c_str(), f);
+ if (f != NULL)
Patrick Johnson 2008/10/17 18:13:15 This looks like a good fix, but won't the silent f
+ fputs(word_.c_str(), f);
file_util::CloseFile(f);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698