Mercurial > pidgin.yaz
diff src/protocols/msn/msg.c @ 10481:bcfea6c3d5c9
[gaim-migrate @ 11769]
Patch 1093958 from Felipe Contreras. It fixes stuff.
I also made some tweaks to make valgrind a bit happier.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Fri, 07 Jan 2005 02:48:33 +0000 |
parents | 2e01c503aa4f |
children | 771c510655c7 |
line wrap: on
line diff
--- a/src/protocols/msn/msg.c Thu Jan 06 23:11:12 2005 +0000 +++ b/src/protocols/msn/msg.c Fri Jan 07 02:48:33 2005 +0000 @@ -197,7 +197,8 @@ g_return_if_fail(payload != NULL); - tmp_base = tmp = g_memdup(payload, payload_len); + tmp_base = tmp = g_malloc0(payload_len + 1); + memcpy(tmp_base, payload, payload_len); /* Parse the attributes. */ end = strstr(tmp, "\r\n\r\n");