Chromium Code Reviews| Index: webkit/tools/npapi_layout_test_plugin/PluginObject.cpp |
| diff --git a/webkit/tools/npapi_layout_test_plugin/PluginObject.cpp b/webkit/tools/npapi_layout_test_plugin/PluginObject.cpp |
| index df8b40c3048b1ab359c976400c2d1e1412b62e8a..3df7c823bab4f0144fca7e1f8144cc7479bb1ab5 100644 |
| --- a/webkit/tools/npapi_layout_test_plugin/PluginObject.cpp |
| +++ b/webkit/tools/npapi_layout_test_plugin/PluginObject.cpp |
| @@ -557,7 +557,8 @@ static bool testPostURLFile(PluginObject* obj, const NPVariant* args, uint32_t a |
| if (!tempFile) |
| return false; |
| - fwrite(contentsString.UTF8Characters, contentsString.UTF8Length, 1, tempFile); |
| + int written = fwrite(contentsString.UTF8Characters, contentsString.UTF8Length, 1, tempFile); |
|
agl
2009/02/22 01:25:35
size_t, not int
|
| + DCHECK(written == 1); |
| fclose(tempFile); |
| NPError error = browser->posturl(obj->npp, url, target, pathString.UTF8Length, path, TRUE); |