Changeset c81e06c in git


Ignore:
Timestamp:
2006-08-27T03:45:38Z (13 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.0
Children:
06b5da4
Parents:
d517ba5
Message:

FIX: alloc'ed wrong size for string on restore

git-svn-id: svn://svn.lighttpd.net/xcache/branches/1.0@100 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • processor/string.m4

    rda19436 rc81e06c  
    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.