diff options
author | peter1138 <peter1138@openttd.org> | 2010-06-12 10:55:13 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2010-06-12 10:55:13 +0000 |
commit | 4b4e97695f47e237e6d6c2512783fbc33bf1060b (patch) | |
tree | 69633798521a04bf1ce9ee6d1ae30cc4a01a29bd /src/video | |
parent | 64e63b72e998836f0db4edca5a7b41854c5d0f4f (diff) | |
download | openttd-4b4e97695f47e237e6d6c2512783fbc33bf1060b.tar.xz |
(svn r19965) -Cleanup: Use size of buffer, not magic number.
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/sdl_v.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp index 399b5df12..d87e9e54e 100644 --- a/src/video/sdl_v.cpp +++ b/src/video/sdl_v.cpp @@ -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(); |