X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=ui.c;h=62b5e8f327d52340f2986c46005a47ee421c9b0a;hb=781c0d657fffe80e45d0fda6ed5ddbf5f796fefb;hp=bde07e4fde9e45288580e6bd00cea188160df046;hpb=5c45b33fdf4a74a424b095d3f07f6102286b105e;p=pkg%2Fabook.git diff --git a/ui.c b/ui.c index bde07e4..62b5e8f 100644 --- a/ui.c +++ b/ui.c @@ -22,6 +22,7 @@ #include "misc.h" #include "options.h" #include "filter.h" +#include "xmalloc.h" #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -605,7 +606,7 @@ ui_open_datafile() load_database(datafile); } else { free(datafile); - datafile = strdup(filename); + datafile = xstrdup(filename); } refresh_screen();