All of lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH] kconfig: allow kconfig to handle longer path names
@ 2015-12-09 22:56 Markus Mayer
  2015-12-10 10:07 ` Michal Marek
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Mayer @ 2015-12-09 22:56 UTC (permalink / raw)
  To: Yann E. Morin
  Cc: Michal Marek, Sam Ravnborg, Linux Kbuild, Linux Kernel,
	Broadcom Kernel List, Markus Mayer

The current (arbitrary) limit of 128 characters for path names has
proven too short for Android builds, as longer path names are used
there.

Change conf.c, so it can handle path lengths up to PATH_MAX characters.

Signed-off-by: Markus Mayer <mmayer@broadcom.com>
---
 scripts/kconfig/conf.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index 6c20431..866369f 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -5,6 +5,7 @@
 
 #include <locale.h>
 #include <ctype.h>
+#include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -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);
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [RESEND PATCH] kconfig: allow kconfig to handle longer path names
  2015-12-09 22:56 [RESEND PATCH] kconfig: allow kconfig to handle longer path names Markus Mayer
@ 2015-12-10 10:07 ` Michal Marek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2015-12-10 10:07 UTC (permalink / raw)
  To: Markus Mayer
  Cc: Yann E. Morin, Sam Ravnborg, Linux Kbuild, Linux Kernel,
	Broadcom Kernel List

On 2015-12-09 23:56, Markus Mayer wrote:
> The current (arbitrary) limit of 128 characters for path names has
> proven too short for Android builds, as longer path names are used
> there.
> 
> Change conf.c, so it can handle path lengths up to PATH_MAX characters.
> 
> Signed-off-by: Markus Mayer <mmayer@broadcom.com>
> ---
>  scripts/kconfig/conf.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)

Thanks, applied to kbuild.git#kconfig.

Michal


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-10 10:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-09 22:56 [RESEND PATCH] kconfig: allow kconfig to handle longer path names Markus Mayer
2015-12-10 10:07 ` Michal Marek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.