Use strncpy() instead of strcpy()
This commit is contained in:
parent
129d0ac31e
commit
37e8c1e93e
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ void Workspace::setName(const string &name) {
|
|||
} else { //if name == 0 then set default name from nls
|
||||
_FB_USES_NLS;
|
||||
char tname[128];
|
||||
sprintf(tname,
|
||||
snprintf(tname, sizeof(tname),
|
||||
_FB_XTEXT(Workspace, DefaultNameFormat,
|
||||
"Workspace %d", "Default workspace names, with a %d for the workspace number").c_str(),
|
||||
m_id + 1); //m_id starts at 0
|
||||
|
|
Loading…
Reference in a new issue