summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/nconf.h
diff options
context:
space:
mode:
authorCheng Renquan <crquan@gmail.com>2011-09-01 19:52:20 +0200
committerMichal Marek <mmarek@suse.cz>2011-09-09 14:40:08 +0200
commit5ea9f64ffc073bf2882f6aa83b0dad3609b1e67a (patch)
tree3915aa9950e2b9e6404acb48a945c00662964954 /scripts/kconfig/nconf.h
parentscripts/kconfig/nconf: fix memmove's length arg (diff)
downloadlinux-5ea9f64ffc073bf2882f6aa83b0dad3609b1e67a.tar.xz
linux-5ea9f64ffc073bf2882f6aa83b0dad3609b1e67a.zip
scripts/kconfig/nconf: dynamically alloc dialog_input_result
To support unlimited length string config items; No check for realloc return value keeps code simple, and to be consistent with other existing unchecked malloc in kconfig. Signed-off-by: Cheng Renquan <crquan@gmail.com> Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Diffstat (limited to '')
-rw-r--r--scripts/kconfig/nconf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/nconf.h b/scripts/kconfig/nconf.h
index 58fbda8fc0dc..0d5261705ef5 100644
--- a/scripts/kconfig/nconf.h
+++ b/scripts/kconfig/nconf.h
@@ -89,7 +89,7 @@ void fill_window(WINDOW *win, const char *text);
int btn_dialog(WINDOW *main_window, const char *msg, int btn_num, ...);
int dialog_inputbox(WINDOW *main_window,
const char *title, const char *prompt,
- const char *init, char *result, int result_len);
+ const char *init, char **resultp, int *result_len);
void refresh_all_windows(WINDOW *main_window);
void show_scroll_win(WINDOW *main_window,
const char *title,