Skip to content

Commit 89b0155

Browse files
committed
Make sure XSetIMValues is terminated with a null pointer value
Sometimes NULL is defined as 0 and on 64-bit systems it really needs to be a null pointer to properly terminate the variadic argument list. (cherry picked from commit 5180c65)
1 parent fae1156 commit 89b0155

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/video/x11/SDL_x11keyboard.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static bool X11_InitIM(SDL_VideoData *videodata)
164164
destroyed_callback.client_data = (XPointer)videodata;
165165
destroyed_callback.callback = (XIMProc)im_destroyed_handler;
166166

167-
X11_XSetIMValues(im, XNDestroyCallback, &destroyed_callback, NULL);
167+
X11_XSetIMValues(im, XNDestroyCallback, &destroyed_callback, (char *)NULL);
168168

169169
/* Attach the new IC to any existing windows.
170170
*

0 commit comments

Comments
 (0)