Use strncpy() instead of strcpy()
Mathias Gumz akira@fluxbox.org
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/Workspace.cc
→
src/Workspace.cc
@@ -158,7 +158,7 @@ m_name = 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