Browse Source

fix missing tokens in cp_getvar

pre-master-46
Holger Vogt 8 years ago
parent
commit
8357564fee
  1. 4
      src/frontend/com_ghelp.c

4
src/frontend/com_ghelp.c

@ -34,7 +34,7 @@ com_ghelp(wordlist *wl)
int i; int i;
#endif /* X_DISPLAY_MISSING 1 */ #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); path = copy(buf);
if (!path) { if (!path) {
fprintf(cp_err, "Note: defaulting to old help.\n\n"); 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", fprintf(cp_err, "Warning: no such button style %s\n",
buf); buf);
} }
if (cp_getvar("width", CP_NUM, &i))
if (cp_getvar("width", CP_NUM, &i, 0))
hlp_width = i; hlp_width = i;
if (cp_getvar("display", CP_STRING, buf, sizeof(buf))) if (cp_getvar("display", CP_STRING, buf, sizeof(buf)))
hlp_displayname = copy(buf); hlp_displayname = copy(buf);

Loading…
Cancel
Save