Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dd04abf

Browse files
author
furious programming
authored
Update sdlevents.inc
Fixing bug with invalid size of the char array — the array should be 32-bytes wide but to this time was 33-bytes wide, causing invalid structure size and bad alignment of further fields. Please check this before merging.
1 parent d3f8657 commit dd04abf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎units/sdlevents.inc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ type
216216
type_: cuint32; // SDL_TEXTEDITING
217217
timestamp: cuint32;
218218
windowID: cuint32; // The window with keyboard focus, if any
219-
text: array[0..SDL_TEXTEDITINGEVENT_TEXT_SIZE] of Char; // The editing text
219+
text: array[0..SDL_TEXTEDITINGEVENT_TEXT_SIZE - 1] of Char; // The editing text
220220
start: cint32; // The start cursor of selected editing text
221221
length: cint32; // The length of selected editing text
222222
end;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /