haiku: Fixed SDL_SetClipboardText() putting random data in clipboard.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 28 May 2017 21:50:11 +0200
changeset 11045cf4e14eedfdf
parent 11044 57e3891f1ef8
child 11046 8dc8b2ed306e
haiku: Fixed SDL_SetClipboardText() putting random data in clipboard.
src/video/haiku/SDL_bclipboard.cc
     1.1 --- a/src/video/haiku/SDL_bclipboard.cc	Sun May 28 15:36:09 2017 -0400
     1.2 +++ b/src/video/haiku/SDL_bclipboard.cc	Sun May 28 21:50:11 2017 +0200
     1.3 @@ -43,7 +43,7 @@
     1.4  			/* Presumably the string of characters is ascii-format */
     1.5  			ssize_t asciiLength = 0;
     1.6  			for(; text[asciiLength] != 0; ++asciiLength) {}
     1.7 -			clip->AddData("text/plain", B_MIME_TYPE, &text, asciiLength);
     1.8 +			clip->AddData("text/plain", B_MIME_TYPE, text, asciiLength);
     1.9  			be_clipboard->Commit();
    1.10  		}
    1.11  		be_clipboard->Unlock();