diff --git a/polymer/eduke32/build/src/sdlayer.c b/polymer/eduke32/build/src/sdlayer.c index d2a334870..43dfeeada 100644 --- a/polymer/eduke32/build/src/sdlayer.c +++ b/polymer/eduke32/build/src/sdlayer.c @@ -145,6 +145,7 @@ HINSTANCE win_gethinstance(void) } #endif + int32_t wm_msgbox(char *name, char *fmt, ...) { char buf[2048]; @@ -171,8 +172,8 @@ int32_t wm_msgbox(char *name, char *fmt, ...) // Replace all tab chars with spaces because the hand-rolled SDL message // box diplays the former as N/L instead of whitespace. { - int32_t i; - for (i=0; i<(int32_t)sizeof(buf); i++) + size_t i; + for (i=0; i