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

Unified Diff: app/clipboard/clipboard_linux.cc

Issue 195067: Turn NULL used as int to 0.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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 | app/gfx/native_widget_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/clipboard/clipboard_linux.cc
===================================================================
--- app/clipboard/clipboard_linux.cc (revision 28691)
+++ app/clipboard/clipboard_linux.cc (working copy)
@@ -204,7 +204,7 @@
// Write as a URI.
char* data = new char[url_len + 1];
memcpy(data, url_data, url_len);
- data[url_len] = NULL;
+ data[url_len] = '\0';
InsertMapping(kMimeURI, data, url_len + 1);
}
« no previous file with comments | « no previous file | app/gfx/native_widget_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698