all repos — fluxbox @ bf43ba16c417bd39131fd0a3fd8efe48405a8a2c

custom fork of the fluxbox windowmanager

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

bf43ba16c417bd39131fd0a3fd8efe48405a8a2c

parent

37e8c1e93ee8953b7ed5be3f4ac17b4c3e5bddcd

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

jump to
M src/FbTk/XFontImp.ccsrc/FbTk/XFontImp.cc

@@ -205,7 +205,7 @@ canvas.fillRectangle(font_gc.gc(),

0, 0, boxlen, boxlen); // draw the character centre top right on canvas - sprintf(text, "%c", ichar); + snprintf(text, 1, "%c", ichar); font_gc.setForeground(1); XDrawImageString(dpy, canvas.drawable(), font_gc.gc(), boxlen/2 - lbearing,