changeset 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
files src/protocols/simple/simple.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/simple/simple.c	Tue Jan 31 12:07:10 2006 +0000
+++ b/src/protocols/simple/simple.c	Tue Jan 31 20:09:54 2006 +0000
@@ -1092,7 +1092,7 @@
 			dummy[msg->bodylen]='\0';
 			msg->body = dummy;
 			cur+=msg->bodylen;
-			memmove(conn->inbuf, cur, conn->inbuflen);
+			memmove(conn->inbuf, cur, conn->inbufused-(cur-conn->inbuf));
 			conn->inbufused=strlen(conn->inbuf);
 		} else {
 			sipmsg_free(msg);