(svn r26511) -Codechange: use strecpy in game_text

This commit is contained in:
rubidium
2014-04-25 17:43:09 +00:00
parent 6ad6845f8c
commit 5e90054f20
4 changed files with 7 additions and 7 deletions

View File

@@ -151,11 +151,11 @@ struct StringListReader : StringReader {
{
}
/* virtual */ char *ReadLine(char *buffer, size_t size)
/* virtual */ char *ReadLine(char *buffer, const char *last)
{
if (this->p == this->end) return NULL;
strncpy(buffer, *this->p, size);
strecpy(buffer, *this->p, last);
this->p++;
return buffer;