diff options
Diffstat (limited to 'src/xutf8/utf8Wrap.c')
| -rw-r--r-- | src/xutf8/utf8Wrap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xutf8/utf8Wrap.c b/src/xutf8/utf8Wrap.c index e26aef15f..4a2bbc990 100644 --- a/src/xutf8/utf8Wrap.c +++ b/src/xutf8/utf8Wrap.c @@ -21,6 +21,7 @@ #include "../Xutf8.h" #include <X11/Xlib.h> +#include <FL/fl_string.h> // fl_strdup() #include <ctype.h> #include <stdlib.h> #include <string.h> @@ -215,7 +216,7 @@ find_best_font(Display *dpy, list = XListFonts(dpy, *name, 1, &cnt); if (cnt && list) { free(*name); - *name = strdup(list[0]); + *name = fl_strdup(list[0]); s = XLoadQueryFont(dpy, *name); XFreeFontNames(list); return s; |
