Replace sprintfs with strcpy for translatable strings
This commit is contained in:
parent
4dab9d3175
commit
bbd39aa513
17 changed files with 145 additions and 145 deletions
|
|
@ -72,7 +72,7 @@ void SendPlrMsg(int pnum, const char *pszStr)
|
|||
pMsg->time = SDL_GetTicks();
|
||||
assert(strlen(plr[pnum]._pName) < PLR_NAME_LEN);
|
||||
assert(strlen(pszStr) < MAX_SEND_STR_LEN);
|
||||
sprintf(pMsg->str, fmt::format(_(/* TRANSLATORS: Shown if player presses "v" button. {:s} is player name, {:d} is level, {:s} is location */ "{:s} (lvl {:d}): {:s}"), plr[pnum]._pName, plr[pnum]._pLevel, pszStr).c_str());
|
||||
strcpy(pMsg->str, fmt::format(_(/* TRANSLATORS: Shown if player presses "v" button. {:s} is player name, {:d} is level, {:s} is location */ "{:s} (lvl {:d}): {:s}"), plr[pnum]._pName, plr[pnum]._pLevel, pszStr).c_str());
|
||||
}
|
||||
|
||||
void ClearPlrMsg()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue