diff --git a/code/client/cl_cgame.c b/code/client/cl_cgame.c index 9d86e97176b..f6fb73371f6 100644 --- a/code/client/cl_cgame.c +++ b/code/client/cl_cgame.c @@ -618,7 +618,7 @@ intptr_t CL_CgameSystemCalls( intptr_t *args ) { Com_Memcpy( VMA(1), VMA(2), args[3] ); return 0; case CG_STRNCPY: - strncpy( VMA(1), VMA(2), args[3] ); + memmove( VMA(1), VMA(2), args[3] ); return args[1]; case CG_SIN: return FloatAsInt( sin( VMF(1) ) ); diff --git a/code/sdl/sdl_glimp.c b/code/sdl/sdl_glimp.c index a5d427a5ae8..76b84824710 100644 --- a/code/sdl/sdl_glimp.c +++ b/code/sdl/sdl_glimp.c @@ -630,12 +630,6 @@ static int GLimp_SetMode(int mode, qboolean fullscreen, qboolean noborder) vresWidth = glConfig.vidWidth; vresHeight = glConfig.vidHeight; - - - - vresWidth = 640; - vresHeight = 480; - #if SDL_MAJOR_VERSION != 2 screen = vidscreen; #endif