VirtualBox

Changeset 1452 in kBuild


Ignore:
Timestamp:
Mar 30, 2008 2:06:32 PM (17 years ago)
Author:
bird
Message:

Fixed bug in $(commands ) that caused occational heap corruption.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/function.c

    r1446 r1452  
    15591559      o = variable_buffer_output (o, v->value, v->value_length + 1);
    15601560      o = variable_buffer + off;
     1561      assert (!o[v->value_length]);
    15611562
    15621563      /* Eval the value.  Pop the current variable buffer setting so that the
     
    15641565
    15651566      install_variable_buffer (&buf, &len);
    1566       var_ctx = !strcmp(funcname, "evalvalctx");
     1567      var_ctx = !strcmp (funcname, "evalvalctx");
    15671568      if (var_ctx)
    15681569        push_new_variable_scope ();
     
    37833784          if (*o != '\0' && *o != '%')
    37843785            o = strchr (o, '\0');
     3786          else if (i)
     3787            o = p - cmd_sep_len;
    37853788          else
    3786             o = p - cmd_sep_len;
     3789            o = p;
    37873790        }
    37883791    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette