diff --git a/code/client/cl_cgame.c b/code/client/cl_cgame.c index 9d86e97176..f6fb73371f 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 a5d427a5ae..76b8482471 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