diff options
| author | erco77 <erco@seriss.com> | 2020-08-01 14:35:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-01 14:35:44 -0700 |
| commit | 7abc09ad89b4c3d0c17ee8dc9d02ccd261cd13f2 (patch) | |
| tree | 72e461bac5930f8a319d48a6ea99ba793dd35a8b /src/xutf8/utf8Wrap.c | |
| parent | 7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff) | |
| parent | e9688822ec68f066f425953278a853e049b93dfb (diff) | |
Merge pull request #116 from erco77/fl_strdup
fl_strdup() implemented + deployed
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; |
