mirror of
https://github.com/raysan5/raylib.git
synced 2026-05-08 23:02:03 +00:00
Update rcore_desktop_sdl.c
This commit is contained in:
@@ -1144,7 +1144,7 @@ const char *GetClipboardText(void)
|
||||
|
||||
char *clipboard = SDL_GetClipboardText();
|
||||
|
||||
int clipboardSize = snprintf(buffer, sizeof(buffer), "%s", clipboard);
|
||||
int clipboardSize = snprintf(buffer, MAX_CLIPBOARD_BUFFER_LENGTH, "%s", clipboard);
|
||||
if (clipboardSize >= MAX_CLIPBOARD_BUFFER_LENGTH)
|
||||
{
|
||||
char *truncate = buffer + MAX_CLIPBOARD_BUFFER_LENGTH - 4;
|
||||
|
||||
Reference in New Issue
Block a user