aboutsummaryrefslogtreecommitdiff
path: root/src/Workspace.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r--src/Workspace.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc
index bf2aea3..91f6da3 100644
--- a/src/Workspace.cc
+++ b/src/Workspace.cc
@@ -158,7 +158,7 @@ void Workspace::setName(const string &name) {
158 } else { //if name == 0 then set default name from nls 158 } else { //if name == 0 then set default name from nls
159 _FB_USES_NLS; 159 _FB_USES_NLS;
160 char tname[128]; 160 char tname[128];
161 sprintf(tname, 161 snprintf(tname, sizeof(tname),
162 _FB_XTEXT(Workspace, DefaultNameFormat, 162 _FB_XTEXT(Workspace, DefaultNameFormat,
163 "Workspace %d", "Default workspace names, with a %d for the workspace number").c_str(), 163 "Workspace %d", "Default workspace names, with a %d for the workspace number").c_str(),
164 m_id + 1); //m_id starts at 0 164 m_id + 1); //m_id starts at 0