# HG changeset patch # User Tim Ringenbach # Date 1108780879 0 # Node ID 41a18bf60ee15bd1b09fc64a0a1bff5f40aac17a # Parent 74cc119beceb35566f8e68f0e747ad5e5b4a366f [gaim-migrate @ 12065] I love committing everything twice. committer: Tailor Script diff -r 74cc119beceb -r 41a18bf60ee1 src/protocols/yahoo/yahoo.c --- a/src/protocols/yahoo/yahoo.c Sat Feb 19 02:38:07 2005 +0000 +++ b/src/protocols/yahoo/yahoo.c Sat Feb 19 02:41:19 2005 +0000 @@ -1960,15 +1960,13 @@ guchar *start; gaim_debug_warning("yahoo", "Error in YMSG stream, got something not a YMSG packet!"); - + start = memchr(yd->rxqueue, 'Y', yd->rxlen); if (start) { g_memmove(yd->rxqueue, start, yd->rxlen - (start - yd->rxqueue)); yd->rxlen -= start - yd->rxqueue; continue; } else { - /* hmm this could screw up with just the Y, YM, or YMS is at the very - end of the packet */ g_free(yd->rxqueue); yd->rxqueue = NULL; yd->rxlen = 0;