syslinux_parse: make print_escaped actually stop before `to'
The only current user is mboot.c32 which unfortunately is not covered by regression tests.
This commit is contained in:
parent
7bb7140df2
commit
8067fe28ed
1 changed files with 1 additions and 1 deletions
|
@ -772,7 +772,7 @@ print_escaped (struct output_buffer *outbuf,
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
outbuf->buf[outbuf->ptr++] = '\'';
|
outbuf->buf[outbuf->ptr++] = '\'';
|
||||||
for (ptr = from; *ptr; ptr++)
|
for (ptr = from; *ptr && ptr < to; ptr++)
|
||||||
{
|
{
|
||||||
if (*ptr == '\'')
|
if (*ptr == '\'')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue