diff options
Diffstat (limited to 'src/FbTk/XFontImp.cc')
-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, |