projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Nico Golde:
[apps/madmutt.git]
/
parse.c
diff --git
a/parse.c
b/parse.c
index
d18ef59
..
ee8d70f
100644
(file)
--- a/
parse.c
+++ b/
parse.c
@@
-47,7
+47,7
@@
static char *read_rfc822_line (FILE * f, char *line, size_t * linelen)
return (line);
}
return (line);
}
- buf +=
safe
_strlen (buf) - 1;
+ buf +=
mutt
_strlen (buf) - 1;
if (*buf == '\n') {
/* we did get a full line. remove trailing space */
while (ISSPACE (*buf))
if (*buf == '\n') {
/* we did get a full line. remove trailing space */
while (ISSPACE (*buf))
@@
-96,7
+96,7
@@
LIST *mutt_parse_references (char *s, int in_reply_to)
new = NULL;
if (*s == '<') {
new = NULL;
if (*s == '<') {
- n =
safe
_strlen (s);
+ n =
mutt
_strlen (s);
if (s[n - 1] != '>') {
o = s;
s = NULL;
if (s[n - 1] != '>') {
o = s;
s = NULL;
@@
-106,7
+106,7
@@
LIST *mutt_parse_references (char *s, int in_reply_to)
new = safe_strdup (s);
}
else if (o) {
new = safe_strdup (s);
}
else if (o) {
- m =
safe
_strlen (s);
+ m =
mutt
_strlen (s);
if (s[m - 1] == '>') {
new = safe_malloc (sizeof (char) * (n + m + 1));
strcpy (new, o); /* __STRCPY_CHECKED__ */
if (s[m - 1] == '>') {
new = safe_malloc (sizeof (char) * (n + m + 1));
strcpy (new, o); /* __STRCPY_CHECKED__ */
@@
-582,9
+582,9
@@
BODY *mutt_parse_multipart (FILE * fp, const char *boundary, long end_off,
return (NULL);
}
return (NULL);
}
- blen =
safe
_strlen (boundary);
+ blen =
mutt
_strlen (boundary);
while (ftell (fp) < end_off && fgets (buffer, LONG_STRING, fp) != NULL) {
while (ftell (fp) < end_off && fgets (buffer, LONG_STRING, fp) != NULL) {
- len =
safe
_strlen (buffer);
+ len =
mutt
_strlen (buffer);
crlf = (len > 1 && buffer[len - 2] == '\r') ? 1 : 0;
crlf = (len > 1 && buffer[len - 2] == '\r') ? 1 : 0;
@@
-605,7
+605,7
@@
BODY *mutt_parse_multipart (FILE * fp, const char *boundary, long end_off,
buffer[i] = 0;
/* Check for the end boundary */
buffer[i] = 0;
/* Check for the end boundary */
- if (
safe
_strcmp (buffer + blen + 2, "--") == 0) {
+ if (
mutt
_strcmp (buffer + blen + 2, "--") == 0) {
final = 1;
break; /* done parsing */
}
final = 1;
break; /* done parsing */
}
@@
-1246,7
+1246,7
@@
int mutt_parse_rfc822_line (ENVELOPE * e, HEADER * hdr, char *line, char *p,
/* Keep track of the user-defined headers */
if (!matched && user_hdrs) {
/* restore the original line */
/* Keep track of the user-defined headers */
if (!matched && user_hdrs) {
/* restore the original line */
- line[
safe
_strlen (line)] = ':';
+ line[
mutt
_strlen (line)] = ':';
if (weed && option (OPTWEED) && mutt_matches_ignore (line, Ignore)
&& !mutt_matches_ignore (line, UnIgnore))
if (weed && option (OPTWEED) && mutt_matches_ignore (line, Ignore)
&& !mutt_matches_ignore (line, UnIgnore))