[Commits] SDL: haiku: Fixed SDL_SetClipboardText() putting random data in ...

libsdl.org revision control commits-owner at libsdl.org
Sun May 28 13:00:28 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/cf4e14eedfdf
changeset: 11045:cf4e14eedfdf
user:      Philipp Wiesemann <philipp.wiesemann at arcor.de>
date:      Sun May 28 21:50:11 2017 +0200
description:
haiku: Fixed SDL_SetClipboardText() putting random data in clipboard.

diffstat:

 src/video/haiku/SDL_bclipboard.cc |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 57e3891f1ef8 -r cf4e14eedfdf src/video/haiku/SDL_bclipboard.cc
--- a/src/video/haiku/SDL_bclipboard.cc	Sun May 28 15:36:09 2017 -0400
+++ b/src/video/haiku/SDL_bclipboard.cc	Sun May 28 21:50:11 2017 +0200
@@ -43,7 +43,7 @@
 			/* 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();


More information about the commits mailing list