projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use good m_ functions, because it smell like a flower, version 2.
[apps/madmutt.git]
/
lib-mime
/
rfc3676.c
diff --git
a/lib-mime/rfc3676.c
b/lib-mime/rfc3676.c
index
253c231
..
42bf5ac
100644
(file)
--- a/
lib-mime/rfc3676.c
+++ b/
lib-mime/rfc3676.c
@@
-187,7
+187,7
@@
int rfc3676_handler (BODY * a, STATE * s) {
}
p_realloc(&curline, curline_len + buf_len - buf_off);
}
p_realloc(&curline, curline_len + buf_len - buf_off);
-
strcpy (curline + curline_len -
1, buf + buf_off);
+
m_strcpy(curline + curline_len - 1, buf_len - buf_off +
1, buf + buf_off);
curline_len += buf_len - buf_off;
/* if this was a fixed line the paragraph is finished */
curline_len += buf_len - buf_off;
/* if this was a fixed line the paragraph is finished */