mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-03 12:59:33 +00:00
(svn r19965) -Cleanup: Use size of buffer, not magic number.
This commit is contained in:
parent
64e63b72e9
commit
4b4e97695f
@ -476,7 +476,7 @@ const char *VideoDriver_SDL::Start(const char * const *parm)
|
||||
return SDL_CALL SDL_GetError();
|
||||
}
|
||||
|
||||
SDL_CALL SDL_VideoDriverName(buf, 30);
|
||||
SDL_CALL SDL_VideoDriverName(buf, sizeof buf);
|
||||
DEBUG(driver, 1, "SDL: using driver '%s'", buf);
|
||||
|
||||
MarkWholeScreenDirty();
|
||||
|
Loading…
Reference in New Issue
Block a user