Fix a (harmless) off-by-one in a SDL_VideoDriverName() call

This commit is contained in:
svdijk 2014-01-05 17:44:29 +01:00
parent a6b911a9a8
commit 7111f735f7

View file

@ -102,7 +102,7 @@ GLimp_Init(void)
const char* driverName = SDL_GetCurrentVideoDriver(); const char* driverName = SDL_GetCurrentVideoDriver();
#else #else
char driverName[64]; char driverName[64];
SDL_VideoDriverName(driverName, sizeof(driverName) - 1); SDL_VideoDriverName(driverName, sizeof(driverName));
#endif #endif
VID_Printf(PRINT_ALL, "SDL video driver is \"%s\".\n", driverName); VID_Printf(PRINT_ALL, "SDL video driver is \"%s\".\n", driverName);
} }