diff options
Diffstat (limited to 'engines/gob/draw_v2.cpp')
-rw-r--r-- | engines/gob/draw_v2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/draw_v2.cpp b/engines/gob/draw_v2.cpp index bb2a57b790..ec678644d5 100644 --- a/engines/gob/draw_v2.cpp +++ b/engines/gob/draw_v2.cpp @@ -24,11 +24,11 @@ */ #include "common/endian.h" +#include "common/str.h" #include "graphics/cursorman.h" #include "gob/gob.h" #include "gob/draw.h" -#include "gob/helper.h" #include "gob/global.h" #include "gob/util.h" #include "gob/game.h" @@ -550,7 +550,7 @@ void Draw_v2::printTotText(int16 id) { sprintf(buf, "%d", VAR_OFFSET(val)); } else if (cmd == 1) { val = READ_LE_UINT16(ptrEnd + 18) * 4; - strncpy0(buf, GET_VARO_STR(val), 19); + Common::strlcpy(buf, GET_VARO_STR(val), 20); } else { val = READ_LE_UINT16(ptrEnd + 18) * 4; sprintf(buf, "%d", VAR_OFFSET(val)); |