Use strncpy() instead of strcpy()
This commit is contained in:
parent
37e8c1e93e
commit
bf43ba16c4
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ void XFontImp::rotate(FbTk::Orientation orient) {
|
|||
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,
|
||||
|
|
Loading…
Reference in a new issue