aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorChris Apers2004-11-09 10:26:33 +0000
committerChris Apers2004-11-09 10:26:33 +0000
commit2abe17e5946ba25a0a2cbb106ebe310f4d9f57d4 (patch)
tree4ab49b7ce05bcc2f557625e7510848ee0d2e4684 /base
parent0823f2be2a8472a016d6f113210d2206f3449f71 (diff)
downloadscummvm-rg350-2abe17e5946ba25a0a2cbb106ebe310f4d9f57d4.tar.gz
scummvm-rg350-2abe17e5946ba25a0a2cbb106ebe310f4d9f57d4.tar.bz2
scummvm-rg350-2abe17e5946ba25a0a2cbb106ebe310f4d9f57d4.zip
Cleanup
svn-id: r15739
Diffstat (limited to 'base')
-rw-r--r--base/engine.cpp27
1 files changed, 5 insertions, 22 deletions
diff --git a/base/engine.cpp b/base/engine.cpp
index e1a1ca4207..a75ff7d1b5 100644
--- a/base/engine.cpp
+++ b/base/engine.cpp
@@ -99,13 +99,8 @@ const char *Engine::getGameDataPath() const {
}
void NORETURN CDECL error(const char *s, ...) {
-#ifdef __PALM_OS__
- char buf_input[256]; // 1024 is too big overflow the stack
- char buf_output[256];
-#else
- char buf_input[1024];
- char buf_output[1024];
-#endif
+ char buf_input[STRINGBUFLEN];
+ char buf_output[STRINGBUFLEN];
va_list va;
va_start(va, s);
@@ -152,11 +147,7 @@ void NORETURN CDECL error(const char *s, ...) {
}
void CDECL warning(const char *s, ...) {
-#ifdef __PALM_OS__
- char buf[256]; // 1024 is too big overflow the stack
-#else
- char buf[1024];
-#endif
+ char buf[STRINGBUFLEN];
va_list va;
va_start(va, s);
@@ -183,11 +174,7 @@ void CDECL warning(const char *s, ...) {
}
void CDECL debug(int level, const char *s, ...) {
-#ifdef __PALM_OS__
- char buf[256]; // 1024 is too big overflow the stack
-#else
- char buf[1024];
-#endif
+ char buf[STRINGBUFLEN];
va_list va;
if (level > g_debugLevel)
@@ -215,11 +202,7 @@ void CDECL debug(int level, const char *s, ...) {
}
void CDECL debug(const char *s, ...) {
-#ifdef __PALM_OS__
- char buf[256]; // 1024 is too big overflow the stack
-#else
- char buf[1024];
-#endif
+ char buf[STRINGBUFLEN];
va_list va;
va_start(va, s);