(svn r19965) -Cleanup: Use size of buffer, not magic number.

This commit is contained in:
peter1138 2010-06-12 10:55:13 +00:00
parent 64e63b72e9
commit 4b4e97695f
1 changed files with 1 additions and 1 deletions

View File

@ -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();