Changeset 557:2c8523f9a1c8 for buffy.c
Legend:
- Unmodified
- Added
- Removed
-
buffy.c
r553 r557 65 65 { 66 66 /* we save in the buffer at the end the first 7 chars from the last read */ 67 strncpy (buffer + BUFSIZ, buffer, 5+2); /* 2 == 2 * strlen(CRLF) */67 strncpy (buffer + BUFSIZ, buffer, 5+2); /* 2 == 2 * mutt_strlen(CRLF) */ 68 68 fseek (f, pos, SEEK_SET); 69 69 bytes_read = fread (buffer, sizeof (char), bytes_read, f); … … 71 71 return -1; 72 72 for (i = bytes_read; --i >= 0;) 73 if (! strncmp (buffer + i, "\n\nFrom ",strlen ("\n\nFrom ")))73 if (!mutt_strncmp (buffer + i, "\n\nFrom ", mutt_strlen ("\n\nFrom "))) 74 74 { /* found it - go to the beginning of the From */ 75 75 fseek (f, pos + i + 2, SEEK_SET); … … 80 80 81 81 /* here we are at the beginning of the file */ 82 if (! strncmp ("From ", buffer, 5))82 if (!mutt_strncmp ("From ", buffer, 5)) 83 83 { 84 84 fseek (f, 0, 0); … … 178 178 for (tmp = &Incoming; *tmp; tmp = &((*tmp)->next)) 179 179 { 180 if ( strcmp (buf, (*tmp)->path) == 0)180 if (mutt_strcmp (buf, (*tmp)->path) == 0) 181 181 break; 182 182 } … … 414 414 while (count < 3) 415 415 { 416 if ( strcmp (s, tmp->path) == 0)416 if (mutt_strcmp (s, tmp->path) == 0) 417 417 count++; 418 418 else if (count && tmp->new)
