diff libpurple/protocols/gg/lib/common.c @ 32737:03a55a2997d1

Gadu-Gadu: Fixed password change dialog and problems with connecting to accounts with non-ASCII passwords. Fixes #14652
author tomkiewicz@cpw.pidgin.im
date Mon, 10 Oct 2011 23:39:33 +0000
parents 3a90a59ddea2
children ef01f180114b
line wrap: on
line diff
--- a/libpurple/protocols/gg/lib/common.c	Sat Oct 08 23:07:45 2011 +0000
+++ b/libpurple/protocols/gg/lib/common.c	Mon Oct 10 23:39:33 2011 +0000
@@ -92,7 +92,7 @@
 			}
 			buf = tmp;
 			res = vsnprintf(buf, size, format, ap);
-		} while (res == size - 1 || res == -1);
+		} while (res >= size - 1 || res == -1);
 	}
 #else
 	{