Changeset 3551

Show
Ignore:
Timestamp:
04/07/08 12:55:52
Author:
svillar
Message:
  • Fixes an small memory issue
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r3550 r3551  
     12008-04-07  Sergio Villar Senin  <svillar@igalia.com> 
     2 
     3        * libtinymail-camel/tny-camel-common.c 
     4        (_string_to_camel_inet_addr): fixes an small memory issue when the 
     5        email address starts with an "<" 
     6 
    172008-04-07  Philip Van Hoof <pvanhoof@gnome.org> 
    28 
  • trunk/libtinymail-camel/tny-camel-common.c

    r3436 r3551  
    250250                char *email = stfnd+1, *gtfnd = NULL; 
    251251 
    252                 lname = stfnd-1; 
     252                if (stfnd != tok) 
     253                        lname = stfnd-1; 
    253254 
    254255                gtfnd = strchr (stfnd, '>'); 
     
    266267                        name++; 
    267268         
    268                 if (G_LIKELY (*lname == ' ')) 
     269                if (G_LIKELY (lname && *lname == ' ')) 
    269270                        *lname-- = '\0'; 
    270271                remove_quotes (name);