summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2010-06-12 10:55:13 +0000
committerpeter1138 <peter1138@openttd.org>2010-06-12 10:55:13 +0000
commit4b4e97695f47e237e6d6c2512783fbc33bf1060b (patch)
tree69633798521a04bf1ce9ee6d1ae30cc4a01a29bd /src/video
parent64e63b72e998836f0db4edca5a7b41854c5d0f4f (diff)
downloadopenttd-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.cpp2
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();