mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 07:53:12 +00:00
Little fix for my last commit.
svn-id: r35074
This commit is contained in:
parent
f57bf13819
commit
78e85a00f2
@ -468,6 +468,7 @@ static void debugHelper(const char *in_buf, bool caret = true) {
|
||||
g_engine->errorString(in_buf, buf, STRINGBUFLEN);
|
||||
} else {
|
||||
strncpy(buf, in_buf, STRINGBUFLEN);
|
||||
buf[STRINGBUFLEN-1] = '\0';
|
||||
}
|
||||
|
||||
if (caret)
|
||||
@ -586,6 +587,7 @@ void NORETURN error(const char *s, ...) {
|
||||
g_engine->errorString(buf_input, buf_output, STRINGBUFLEN);
|
||||
} else {
|
||||
strncpy(buf_output, buf_input, STRINGBUFLEN);
|
||||
buf_output[STRINGBUFLEN-1] = '\0';
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user