From 1b9dc59918e513c66f7ea4fc5f1643f378722e7a Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sun, 28 May 2017 21:50:11 +0200 Subject: [PATCH] haiku: Fixed SDL_SetClipboardText() putting random data in clipboard. --- src/video/haiku/SDL_bclipboard.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/haiku/SDL_bclipboard.cc b/src/video/haiku/SDL_bclipboard.cc index 8c4d210522503..1cc2951ee6971 100644 --- a/src/video/haiku/SDL_bclipboard.cc +++ b/src/video/haiku/SDL_bclipboard.cc @@ -43,7 +43,7 @@ int BE_SetClipboardText(_THIS, const char *text) { /* Presumably the string of characters is ascii-format */ ssize_t asciiLength = 0; for(; text[asciiLength] != 0; ++asciiLength) {} - clip->AddData("text/plain", B_MIME_TYPE, &text, asciiLength); + clip->AddData("text/plain", B_MIME_TYPE, text, asciiLength); be_clipboard->Commit(); } be_clipboard->Unlock();