Skip to content

Commit

Permalink
haiku: Fixed SDL_SetClipboardText() putting random data in clipboard.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed May 28, 2017
1 parent de52dc2 commit 1b9dc59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/haiku/SDL_bclipboard.cc
Expand Up @@ -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();
Expand Down

0 comments on commit 1b9dc59

Please sign in to comment.