Skip to content

Commit

Permalink
Fixed null terminating the X11 error string
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 29, 2014
1 parent 765894e commit 610225b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11opengl.c
Expand Up @@ -549,7 +549,7 @@ X11_GL_CreateContextErrorHandler(Display * d, XErrorEvent * e)
errorCode = e->error_code;
if (X11_XGetErrorText(d, errorCode, x11_error_locale, sizeof(x11_error_locale)) == Success)
{
x11_error = SDL_iconv_string("UTF-8", "", x11_error_locale, strlen(x11_error_locale));
x11_error = SDL_iconv_string("UTF-8", "", x11_error_locale, SDL_strlen(x11_error_locale)+1);
}

if (x11_error)
Expand Down

0 comments on commit 610225b

Please sign in to comment.