Skip to content

Commit

Permalink
Use format string with SDL_SetError.
Browse files Browse the repository at this point in the history
Fixes #26, although the fix wasn't tested.
  • Loading branch information
renpytom committed Jan 24, 2016
1 parent 78eeb25 commit 10b13b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pygame_sdl2/error.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ def get_error():

def set_error(message):
message = bytes(message)
SDL_SetError(message)
SDL_SetError("%s", <char *> message)

0 comments on commit 10b13b6

Please sign in to comment.