Commit e00983a5 authored by Pekka Pessi's avatar Pekka Pessi

msg_mime.c: explicit cast when assigning to mp_len

Ignore-this: ca5b8291eb84d8b166ab7f659bcf69f8

darcs-hash:20090311165044-db55f-735c19eb79297b21d363b921bd87c9813f33736a.gz
parent a86e4c4f
......@@ -513,7 +513,7 @@ msg_multipart_t *msg_multipart_parse(su_home_t *home,
for (mp = all; mp; mp = mp->mp_next) {
mp->mp_data = boundary;
mp->mp_len = blen;
mp->mp_len = (unsigned)blen; /* XXX */
assert(mp->mp_payload || mp->mp_separator);
......@@ -613,7 +613,8 @@ int msg_multipart_complete(su_home_t *home,
for (; mp; mp = mp->mp_next) {
if (mp->mp_data == NULL) {
mp->mp_data = boundary, mp->mp_len = blen;
mp->mp_data = boundary;
mp->mp_len = (unsigned)blen; /* XXX */
} else {
if (mp->mp_len < 3)
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment