Ignore:
Timestamp:
2006-08-27T05:45:38+02:00 (9 years ago)
Author:
moo
Message:

FIX: alloc'ed wrong size for string on restore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/string.m4

    r11 r100  
    3838        IFSTORE(`$1 = (STRTYPE *) xc_store_string_n(processor, ISTYPE, (char *) $2, `$3' IFASSERT(`, __LINE__'));')
    3939        IFRESTORE(`
    40             ALLOC(`$1', `STRTYPE', `sizeof(STRTYPE) * ($3)')
     40            ALLOC(`$1', `STRTYPE', `($3)')
    4141            memcpy($1, $2, sizeof(STRTYPE) * ($3));
    4242        ')
Note: See TracChangeset for help on using the changeset viewer.