summaryrefslogtreecommitdiffstats
path: root/ui/ncurses
diff options
context:
space:
mode:
authorBrett Grandbois <brett.grandbois@opengear.com>2018-02-06 06:40:29 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-02-08 08:01:34 +1100
commit44ab15ff671fae26af2b5c8a5db8bcded677ef74 (patch)
tree7c0aebc8e56efd5f6aaaa224c81fd38eb479fb3e /ui/ncurses
parent8f09986340e602a69398b2866a265ea3f16609c6 (diff)
downloadtalos-petitboot-44ab15ff671fae26af2b5c8a5db8bcded677ef74.tar.gz
talos-petitboot-44ab15ff671fae26af2b5c8a5db8bcded677ef74.zip
ncurses/nc-cui: musl libc fixes
add missing #inlcude <locale.h> musl libc can segfault with a NULL format string so need to add a redundant "%s", "" to keep it happy Signed-off-by: Brett Grandbois <brett.grandbois@opengear.com> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'ui/ncurses')
-rw-r--r--ui/ncurses/nc-cui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c
index f9f8247..ee6df87 100644
--- a/ui/ncurses/nc-cui.c
+++ b/ui/ncurses/nc-cui.c
@@ -24,6 +24,7 @@
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
+#include <locale.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/reboot.h>
@@ -1334,7 +1335,7 @@ static struct pmenu *plugin_menu_init(struct cui *cui)
m = pmenu_init(cui, 2, cui_plugin_menu_exit);
m->scr.frame.ltitle = talloc_asprintf(m, _("Petitboot Plugins"));
- m->scr.frame.rtitle = talloc_asprintf(m, NULL);
+ m->scr.frame.rtitle = talloc_asprintf(m, "%s", "");
m->scr.frame.help = talloc_strdup(m,
_("Enter=install, e=details, x=exit, h=help"));
m->scr.frame.status = talloc_asprintf(m,
OpenPOWER on IntegriCloud