diff options
author | Chris Packham <judge.packham@gmail.com> | 2021-02-08 07:49:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 07:49:36 (GMT) |
commit | 5b0e0127e189c08e433ae25dbceead63da5ef2d7 (patch) | |
tree | bc9619a09931ac13904711ebf2721c7b2f355bce /kconfig/nconf.gui.c | |
parent | 30316cd27ab0a6f8cb2a96771661fc88e1b05a6b (diff) | |
parent | d0e328c8ad357a705b6218e20f74ec1ec1869e8d (diff) |
Merge pull request #1430 from cpackham/kconfig-update
Kconfig update
Diffstat (limited to 'kconfig/nconf.gui.c')
-rw-r--r-- | kconfig/nconf.gui.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/kconfig/nconf.gui.c b/kconfig/nconf.gui.c index a64b1c3..77f525a 100644 --- a/kconfig/nconf.gui.c +++ b/kconfig/nconf.gui.c @@ -1,11 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0 /* - * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com? - * Released under the terms of the GNU GPL v2.0. + * Copyright (C) 2008 Nir Tzachar <nir.tzachar@gmail.com> * * Derived from menuconfig. - * */ #include "nconf.h" +#include "lkc.h" /* a list of all the different widgets we use */ attributes_t attributes[ATTR_MAX+1] = {0}; @@ -374,7 +374,7 @@ int dialog_inputbox(WINDOW *main_window, if (strlen(init)+1 > *result_len) { *result_len = strlen(init)+1; - *resultp = result = realloc(result, *result_len); + *resultp = result = xrealloc(result, *result_len); } /* find the widest line of msg: */ @@ -439,7 +439,8 @@ int dialog_inputbox(WINDOW *main_window, case KEY_F(F_EXIT): case KEY_F(F_BACK): break; - case 127: + case 8: /* ^H */ + case 127: /* ^? */ case KEY_BACKSPACE: if (cursor_position > 0) { memmove(&result[cursor_position-1], |