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
1 changed files with 1 additions and 1 deletions

View File

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