VirtualBox

Changeset 1945 in kBuild


Ignore:
Timestamp:
Oct 26, 2008 2:38:02 AM (16 years ago)
Author:
bird
Message:

file.c: Fixed call to strcache_add_len where the terminator was included in the string length.

File:
1 edited

Legend:

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

    r1933 r1945  
    727727                    o = patsubst_expand_pat (buffer, d->stem, pattern, nm,
    728728                                             pattern+1, percent+1);
    729                   buffer = variable_buffer + buffer_offset; /* bird - variable_buffer may have been reallocated. */
     729                  buffer = variable_buffer + buffer_offset; /* bird fix - variable_buffer may have been reallocated. */
    730730
    731731
     
    743743
    744744                  /* Save the name.  */
    745                   dp->name = strcache_add_len (buffer, o - buffer);
     745                  dp->name = strcache_add_len (buffer, o - buffer - 1); /* bird fix - don't include the terminator. */
    746746                }
    747747              dl = dp;
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