diff options
author | smatz <smatz@openttd.org> | 2009-05-10 17:27:25 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-10 17:27:25 +0000 |
commit | f5316c5cbd13c3ce8c0a7d8b652ce7d975c17438 (patch) | |
tree | e9c57e3fa45a652740e681f7d25b731d7b2f9cfb /src/core | |
parent | 552f10bb09667a7c36724092d290808c2c9e51b4 (diff) | |
download | openttd-f5316c5cbd13c3ce8c0a7d8b652ce7d975c17438.tar.xz |
(svn r16269) -Codechange: use gcc's ability to check parameters sent to printf-like functions
-Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/alloc_func.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/alloc_func.cpp b/src/core/alloc_func.cpp index 028335d76..236a9c9d5 100644 --- a/src/core/alloc_func.cpp +++ b/src/core/alloc_func.cpp @@ -11,7 +11,7 @@ */ void NORETURN MallocError(size_t size) { - error("Out of memory. Cannot allocate %i bytes", size); + error("Out of memory. Cannot allocate " PRINTF_SIZE " bytes", size); } /** @@ -20,5 +20,5 @@ void NORETURN MallocError(size_t size) */ void NORETURN ReallocError(size_t size) { - error("Out of memory. Cannot reallocate %i bytes", size); + error("Out of memory. Cannot reallocate " PRINTF_SIZE " bytes", size); } |