changeset 10635:6895c4212362

[gaim-migrate @ 12117] i meant to commit this a while ago, but I ran out of time, and then got sick. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Wed, 23 Feb 2005 23:39:59 +0000
parents 483765e4a26c
children 0f5c5e6fb27f
files src/protocols/yahoo/yahoo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Wed Feb 23 14:27:26 2005 +0000
+++ b/src/protocols/yahoo/yahoo.c	Wed Feb 23 23:39:59 2005 +0000
@@ -1961,7 +1961,7 @@
 
 			gaim_debug_warning("yahoo", "Error in YMSG stream, got something not a YMSG packet!");
 
-			start = memchr(yd->rxqueue, 'Y', yd->rxlen);
+			start = memchr(yd->rxqueue + 1, 'Y', yd->rxlen - 1);
 			if (start) {
 				g_memmove(yd->rxqueue, start, yd->rxlen - (start - yd->rxqueue));
 				yd->rxlen -= start - yd->rxqueue;