diff options
author | Mathias Gumz <akira@fluxbox.org> | 2015-01-29 10:52:00 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2015-01-29 10:52:00 (GMT) |
commit | bf43ba16c417bd39131fd0a3fd8efe48405a8a2c (patch) | |
tree | 162b70543cb05019ebe62bc6bf5de540a2a4640d /src | |
parent | 37e8c1e93ee8953b7ed5be3f4ac17b4c3e5bddcd (diff) | |
download | fluxbox-bf43ba16c417bd39131fd0a3fd8efe48405a8a2c.zip fluxbox-bf43ba16c417bd39131fd0a3fd8efe48405a8a2c.tar.bz2 |
Use strncpy() instead of strcpy()
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/XFontImp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/XFontImp.cc b/src/FbTk/XFontImp.cc index 524dc72..2bae4e6 100644 --- a/src/FbTk/XFontImp.cc +++ b/src/FbTk/XFontImp.cc | |||
@@ -205,7 +205,7 @@ void XFontImp::rotate(FbTk::Orientation orient) { | |||
205 | 0, 0, | 205 | 0, 0, |
206 | boxlen, boxlen); | 206 | boxlen, boxlen); |
207 | // draw the character centre top right on canvas | 207 | // draw the character centre top right on canvas |
208 | sprintf(text, "%c", ichar); | 208 | snprintf(text, 1, "%c", ichar); |
209 | font_gc.setForeground(1); | 209 | font_gc.setForeground(1); |
210 | XDrawImageString(dpy, canvas.drawable(), font_gc.gc(), | 210 | XDrawImageString(dpy, canvas.drawable(), font_gc.gc(), |
211 | boxlen/2 - lbearing, | 211 | boxlen/2 - lbearing, |