Changeset 84


Ignore:
Timestamp:
Mar 31, 2008, 4:33:47 PM (11 years ago)
Author:
lindanl
Message:

Fix length bug in encoding action.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xmldecl.c

    r67 r84  
    7777        m->encoding = (unsigned char *) malloc(end_pos-start_pos+1);
    7878        memcpy(m->encoding, &x8data[start_pos-buffer_base_pos], end_pos - start_pos);
    79         m->encoding[end_pos] = '\0';
     79        m->encoding[end_pos - start_pos] = '\0';
    8080}
    8181//
Note: See TracChangeset for help on using the changeset viewer.