mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-28 19:58:35 +01:00
Fixed a compilation warning (potential buffer overflow)
This commit is contained in:
parent
6f14e34fe7
commit
3bde966efb
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ Game* Game::gameLoadFormat_14(FILE *fin, const Dictionary& iDic)
|
|||
break;
|
||||
|
||||
//debug("%s)", token);
|
||||
strncat(pos, token, sizeof(pos));
|
||||
strncat(pos, token, sizeof(pos) - strlen(pos) - 1);
|
||||
|
||||
if ((ret = pGame->play(convertToWc(pos), convertToWc(word))))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue