From ae3948aa85235356ffd546488e8a24a48e5a1911 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Tue, 2 Aug 2016 22:46:54 +0200 Subject: [PATCH] Synchronise with v4.5 Signed-off-by: "Yann E. MORIN" --- .version | 2 +- frontends/conf/conf.c | 7 ++++--- frontends/qconf/qconf.cc | 2 ++ libs/parser/menu.c | 2 +- scripts/ksync.log | 3 +++ 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.version b/.version index a580f7b..70d457e 100644 --- a/.version +++ b/.version @@ -1,2 +1,2 @@ -4.4.0 afd2ff9b7e1b367172f18ba7f693dfb62bdcb2dc Blurry Fish Butt +4.5.0 b562e44f507e863c6792946e4e1b1449fbbac85d Blurry Fish Butt 0 diff --git a/frontends/conf/conf.c b/frontends/conf/conf.c index 6c20431..866369f 100644 --- a/frontends/conf/conf.c +++ b/frontends/conf/conf.c @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -41,7 +42,7 @@ static int tty_stdio; static int valid_stdin = 1; static int sync_kconfig; static int conf_cnt; -static char line[128]; +static char line[PATH_MAX]; static struct menu *rootEntry; static void print_help(struct menu *menu) @@ -109,7 +110,7 @@ static int conf_askvalue(struct symbol *sym, const char *def) /* fall through */ case oldaskconfig: fflush(stdout); - xfgets(line, 128, stdin); + xfgets(line, sizeof(line), stdin); if (!tty_stdio) printf("\n"); return 1; @@ -311,7 +312,7 @@ static int conf_choice(struct menu *menu) /* fall through */ case oldaskconfig: fflush(stdout); - xfgets(line, 128, stdin); + xfgets(line, sizeof(line), stdin); strip(line); if (line[0] == '?') { print_help(menu); diff --git a/frontends/qconf/qconf.cc b/frontends/qconf/qconf.cc index 80da9ae..19a84c9 100644 --- a/frontends/qconf/qconf.cc +++ b/frontends/qconf/qconf.cc @@ -1863,6 +1863,8 @@ int main(int ac, char** av) configSettings->endGroup(); delete configSettings; + delete v; + delete configApp; return 0; } diff --git a/libs/parser/menu.c b/libs/parser/menu.c index b05cc3d..aed678e 100644 --- a/libs/parser/menu.c +++ b/libs/parser/menu.c @@ -477,7 +477,7 @@ bool menu_is_visible(struct menu *menu) if (menu->visibility) { if (expr_calc_value(menu->visibility) == no) - return no; + return false; } sym = menu->sym; diff --git a/scripts/ksync.log b/scripts/ksync.log index e767fcc..27b5a78 100644 --- a/scripts/ksync.log +++ b/scripts/ksync.log @@ -156,3 +156,6 @@ ed94fea kconfig/merge_config.sh: Support KCONFIG_CONFIG 2163e7b kconfig/merge_config.sh: Accept a single file f6aad26 kconfig: Fix copy&paste error be596aa Add current selection check. +74dba80 kconfig: allow kconfig to handle longer path names +aab24a8 kconfig: return 'false' instead of 'no' in bool function +5b61c7b kconfig: fix qconf segfault by deleting heap objects -- 2.39.5