This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "uClibc-ng - small C library for embedded systems".
The branch, master has been updated via a4b3f4863e5904fef296538fdf71e7e806bf77e9 (commit) from 97a011d422f037af35d77c15ccc94c2ed1121471 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit a4b3f4863e5904fef296538fdf71e7e806bf77e9 Author: Markus Mayer mmayer@broadcom.com Date: Thu Dec 10 11:24:24 2015 -0800
config: allow config to handle longer path names
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
-----------------------------------------------------------------------
Summary of changes: extra/config/conf.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/extra/config/conf.c b/extra/config/conf.c index b24c1c3..34bb4f5 100644 --- a/extra/config/conf.c +++ b/extra/config/conf.c @@ -5,6 +5,7 @@
#include <locale.h> #include <ctype.h> +#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -40,7 +41,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) @@ -108,7 +109,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; @@ -310,7 +311,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);
hooks/post-receive