Explorar o código

haiku: Fixed SDL_SetClipboardText() putting random data in clipboard.

Philipp Wiesemann %!s(int64=9) %!d(string=hai) anos
pai
achega
1b9dc59918
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video/haiku/SDL_bclipboard.cc

+ 1 - 1
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 */
 			/* Presumably the string of characters is ascii-format */
 			ssize_t asciiLength = 0;
 			ssize_t asciiLength = 0;
 			for(; text[asciiLength] != 0; ++asciiLength) {}
 			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->Commit();
 		}
 		}
 		be_clipboard->Unlock();
 		be_clipboard->Unlock();