[syslinux] boot... round 2
H. Peter Anvin
hpa at zytor.com
Thu Jul 2 11:37:54 PDT 2015
On 07/01/2015 01:35 AM, poma via Syslinux wrote:
>
> diff --git a/com32/elflink/ldlinux/readconfig.c b/com32/elflink/ldlinux/readconfig.c
> index 381b43f..dcdf91b 100644
> --- a/com32/elflink/ldlinux/readconfig.c
> +++ b/com32/elflink/ldlinux/readconfig.c
> @@ -330,7 +330,7 @@ static char *copy_sysappend_string(char *dst, const char *src)
> char c;
>
> while ((c = *src++)) {
> - if (c <= ' ' || c == '\x7f') {
> + if (c <= ' ' && c == '\x7f') {
> if (!was_space)
> *dst++ = '_';
> was_space = true;
I think I see the problem. "char" should be "unsigned char"...
-hpa
More information about the Syslinux
mailing list