GOB: Remove strncpy0()
Replacing it (and some strncpy + manual terminating) with Common::strlcpy() svn-id: r53490
This commit is contained in:
parent
04973e85be
commit
5c48c3fd2b
15 changed files with 47 additions and 42 deletions
|
@ -24,6 +24,7 @@
|
|||
*/
|
||||
|
||||
#include "common/endian.h"
|
||||
#include "common/str.h"
|
||||
#include "graphics/cursorman.h"
|
||||
|
||||
#include "gob/gob.h"
|
||||
|
@ -550,7 +551,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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue