diff options
-rw-r--r-- | common/macresman.cpp | 2 | ||||
-rw-r--r-- | common/textconsole.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/common/macresman.cpp b/common/macresman.cpp index d2fe3063c6..fc4e0a55f5 100644 --- a/common/macresman.cpp +++ b/common/macresman.cpp @@ -368,7 +368,7 @@ MacResIDArray MacResManager::getResIDArray(uint32 typeID) { MacResIDArray res; for (int i = 0; i < _resMap.numTypes; i++) - if (_resTypes[i].id == typeID) { + if (_resTypes[i].id == typeID) { typeNum = i; break; } diff --git a/common/textconsole.cpp b/common/textconsole.cpp index 4602b3be8d..9c72699914 100644 --- a/common/textconsole.cpp +++ b/common/textconsole.cpp @@ -81,9 +81,9 @@ void NORETURN_PRE error(const char *s, ...) { strncpy(buf_output, buf_input, STRINGBUFLEN); } - buf_output[STRINGBUFLEN-3] = '\0'; - buf_output[STRINGBUFLEN-2] = '\0'; - buf_output[STRINGBUFLEN-1] = '\0'; + buf_output[STRINGBUFLEN - 3] = '\0'; + buf_output[STRINGBUFLEN - 2] = '\0'; + buf_output[STRINGBUFLEN - 1] = '\0'; strcat(buf_output, "!\n"); if (g_system) |