VirtualBox

Changeset 1844 in kBuild for trunk/src/kmk


Ignore:
Timestamp:
Oct 12, 2008 3:43:24 PM (16 years ago)
Author:
bird
Message:

one terminator is sufficient.

File:
1 edited

Legend:

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

    r1843 r1844  
    116116  memcpy (tmp, str, str_len);
    117117  tmp += str_len;
    118   do
    119     *(tmp++) = '\0';
    120   while (tmp < best->end);
     118  *(tmp++) = '\0';
    121119
    122120  best->bytesfree -= len + 1;
    123121  ++best->count;
    124122
    125   assert (tmp == best->end);
     123  assert (tmp <= best->end);
    126124  assert (!((size_t)res & (sizeof(void *) - 1)));
    127125#endif /* CONFIG_WITH_VALUE_LENGTH */
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