VirtualBox

Changeset 1949 in kBuild for trunk/src


Ignore:
Timestamp:
Oct 26, 2008 4:30:06 AM (17 years ago)
Author:
bird
Message:

variable.c: Fixed missed CONFIG_WITH_VALUE_LENGTH case in handle_special_var (.VARIABLES).

File:
1 edited

Legend:

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

    r1946 r1949  
    421421      && global_variable_set.table.ht_fill != last_var_count)
    422422    {
     423#ifndef CONFIG_WITH_VALUE_LENGTH
    423424      unsigned long max = EXPANSION_INCREMENT (strlen (var->value));
     425#else
     426      unsigned long max = EXPANSION_INCREMENT (var->value_length);
     427#endif
    424428      unsigned long len;
    425429      char *p;
     
    454458          }
    455459      *(p-1) = '\0';
     460#ifdef CONFIG_WITH_VALUE_LENGTH
     461      var->value_length = p - var->value - 1;
     462      var->value_alloc_len = max;
     463#endif
    456464
    457465      /* Remember how many variables are in our current count.  Since we never
Note: See TracChangeset for help on using the changeset viewer.

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