[PATCH] scripts: fix fixdep.c to let it workable in cygwin

walter harms wharms at bfs.de
Fri Dec 17 08:24:58 UTC 2010



Am 17.12.2010 04:44, schrieb Macpaul Lin:
> Update retrun character detection in the fixdep.c
> to let it workable in cygwin.
> 
> Signed-off-by: Greentime <green.hu at gmail.com>
> ---
>  scripts/basic/fixdep.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c
> index 1a5b10f..f27a179 100644
> --- a/scripts/basic/fixdep.c
> +++ b/scripts/basic/fixdep.c
> @@ -329,7 +329,7 @@ void parse_dep_file(void *map, size_t len)
>  	clear_config();
>  
>  	while (m < end) {
> -		while (m < end && (*m == ' ' || *m == '\\' || *m == '\n'))
> +		while (m < end && (*m == ' ' || *m == '\\' || *m == '\n' || *m == '\r'))
>  			m++;
>  		p = m;
>  		while (p < end && *p != ' ') p++;


mmh, i this this is a part of the menu setup code ?
perhaps  isspace() is better here that would catch "\t" also a a few more.
can you please check what the current kernel says here ? (if that is part
of menu setup code).

re,
 wh


More information about the busybox mailing list