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 708e303..7fa633e 100644 --- a/app/clipboard/clipboard_linux.cc +++ b/app/clipboard/clipboard_linux.cc @@ -350,7 +350,7 @@ void Clipboard::ReadHTML(Clipboard::Buffer buffer, string16* markup, } // If there is a terminating NULL, drop it. - if (markup->at(markup->length() - 1) == '\0') + if (!markup->empty() && markup->at(markup->length() - 1) == '\0') markup->resize(markup->length() - 1); gtk_selection_data_free(data); |