diff options
Diffstat (limited to 'scripts/kconfig')
| -rw-r--r-- | scripts/kconfig/conf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 6c204318bc94..866369f10ff8 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | 5 | ||
| 6 | #include <locale.h> | 6 | #include <locale.h> |
| 7 | #include <ctype.h> | 7 | #include <ctype.h> |
| 8 | #include <limits.h> | ||
| 8 | #include <stdio.h> | 9 | #include <stdio.h> |
| 9 | #include <stdlib.h> | 10 | #include <stdlib.h> |
| 10 | #include <string.h> | 11 | #include <string.h> |
| @@ -41,7 +42,7 @@ static int tty_stdio; | |||
| 41 | static int valid_stdin = 1; | 42 | static int valid_stdin = 1; |
| 42 | static int sync_kconfig; | 43 | static int sync_kconfig; |
| 43 | static int conf_cnt; | 44 | static int conf_cnt; |
| 44 | static char line[128]; | 45 | static char line[PATH_MAX]; |
| 45 | static struct menu *rootEntry; | 46 | static struct menu *rootEntry; |
| 46 | 47 | ||
| 47 | static void print_help(struct menu *menu) | 48 | static void print_help(struct menu *menu) |
| @@ -109,7 +110,7 @@ static int conf_askvalue(struct symbol *sym, const char *def) | |||
| 109 | /* fall through */ | 110 | /* fall through */ |
| 110 | case oldaskconfig: | 111 | case oldaskconfig: |
| 111 | fflush(stdout); | 112 | fflush(stdout); |
| 112 | xfgets(line, 128, stdin); | 113 | xfgets(line, sizeof(line), stdin); |
| 113 | if (!tty_stdio) | 114 | if (!tty_stdio) |
| 114 | printf("\n"); | 115 | printf("\n"); |
| 115 | return 1; | 116 | return 1; |
| @@ -311,7 +312,7 @@ static int conf_choice(struct menu *menu) | |||
| 311 | /* fall through */ | 312 | /* fall through */ |
| 312 | case oldaskconfig: | 313 | case oldaskconfig: |
| 313 | fflush(stdout); | 314 | fflush(stdout); |
| 314 | xfgets(line, 128, stdin); | 315 | xfgets(line, sizeof(line), stdin); |
| 315 | strip(line); | 316 | strip(line); |
| 316 | if (line[0] == '?') { | 317 | if (line[0] == '?') { |
| 317 | print_help(menu); | 318 | print_help(menu); |
