From 8357564fee7d79642176eba69b06d27b87305d3d Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Mon, 30 Jul 2018 00:42:46 +0200 Subject: [PATCH] fix missing tokens in cp_getvar --- src/frontend/com_ghelp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/com_ghelp.c b/src/frontend/com_ghelp.c index 2e03141b9..4fa27ed29 100644 --- a/src/frontend/com_ghelp.c +++ b/src/frontend/com_ghelp.c @@ -34,7 +34,7 @@ com_ghelp(wordlist *wl) int i; #endif /* X_DISPLAY_MISSING 1 */ - if (cp_getvar("helppath", CP_STRING, , sizeof(buf))) + if (cp_getvar("helppath", CP_STRING, buf, sizeof(buf))) path = copy(buf); if (!path) { fprintf(cp_err, "Note: defaulting to old help.\n\n"); @@ -75,7 +75,7 @@ com_ghelp(wordlist *wl) fprintf(cp_err, "Warning: no such button style %s\n", buf); } - if (cp_getvar("width", CP_NUM, &i)) + if (cp_getvar("width", CP_NUM, &i, 0)) hlp_width = i; if (cp_getvar("display", CP_STRING, buf, sizeof(buf))) hlp_displayname = copy(buf);