all repos — fluxbox @ 37e8c1e93ee8953b7ed5be3f4ac17b4c3e5bddcd

custom fork of the fluxbox windowmanager

Use strncpy() instead of strcpy()
Mathias Gumz akira@fluxbox.org
commit

37e8c1e93ee8953b7ed5be3f4ac17b4c3e5bddcd

parent

129d0ac31efcefc21d083c1dc204d055c9269d82

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/Workspace.ccsrc/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