mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 15:21:44 +00:00
Fix a (harmless) off-by-one in a SDL_VideoDriverName() call
This commit is contained in:
parent
a6b911a9a8
commit
7111f735f7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue