diff options
Diffstat (limited to 'app/clipboard/clipboard_linux.cc')
-rw-r--r-- | app/clipboard/clipboard_linux.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/clipboard/clipboard_linux.cc b/app/clipboard/clipboard_linux.cc index 8b30ffd..bc8a0b4 100644 --- a/app/clipboard/clipboard_linux.cc +++ b/app/clipboard/clipboard_linux.cc @@ -204,7 +204,7 @@ void Clipboard::WriteBookmark(const char* title_data, size_t title_len, // 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); } |