Mercurial > pidgin
comparison src/protocols/simple/simple.c @ 13082:f6ed8290f1cf
[gaim-migrate @ 15444]
wrong size in memmove
committer: Tailor Script <tailor@pidgin.im>
| author | Thomas Butter <tbutter> |
|---|---|
| date | Tue, 31 Jan 2006 20:09:54 +0000 |
| parents | 7768cfa2e67e |
| children | 1b81ab9c8441 |
comparison
equal
deleted
inserted
replaced
| 13081:7768cfa2e67e | 13082:f6ed8290f1cf |
|---|---|
| 1090 dummy = g_malloc(msg->bodylen+1); | 1090 dummy = g_malloc(msg->bodylen+1); |
| 1091 memcpy(dummy, cur, msg->bodylen); | 1091 memcpy(dummy, cur, msg->bodylen); |
| 1092 dummy[msg->bodylen]='\0'; | 1092 dummy[msg->bodylen]='\0'; |
| 1093 msg->body = dummy; | 1093 msg->body = dummy; |
| 1094 cur+=msg->bodylen; | 1094 cur+=msg->bodylen; |
| 1095 memmove(conn->inbuf, cur, conn->inbuflen); | 1095 memmove(conn->inbuf, cur, conn->inbufused-(cur-conn->inbuf)); |
| 1096 conn->inbufused=strlen(conn->inbuf); | 1096 conn->inbufused=strlen(conn->inbuf); |
| 1097 } else { | 1097 } else { |
| 1098 sipmsg_free(msg); | 1098 sipmsg_free(msg); |
| 1099 return; | 1099 return; |
| 1100 } | 1100 } |
