Changeset 694

Show
Ignore:
Timestamp:
06/29/07 08:46:10 (2 years ago)
Author:
jajcus
Message:

- buffer overflow bug fixed, thanks Michal

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/encoding.c

    r680 r694  
    9898 
    9999        if (str==NULL) return NULL; 
    100         if (buf_len<(strlen(str)+1)){ 
     100        if (buf_len<(strlen(str)*2+1)){ 
    101101                buf_len=strlen(str)*2+1; /* this should always be enough */ 
    102102                buf=(char *)g_realloc(buf,buf_len);