diff src/protocols/oscar/oscar.c @ 13595:e9289db48a5d

[gaim-migrate @ 15981] Fix some bugs. I don't understand why I don't get "might be used uninitialized" warnings when I compile on my machine. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 07 Apr 2006 14:13:44 +0000
parents 6519aeb66b31
children 4d8927a4f1ef
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Fri Apr 07 05:14:16 2006 +0000
+++ b/src/protocols/oscar/oscar.c	Fri Apr 07 14:13:44 2006 +0000
@@ -1623,7 +1623,7 @@
 	separator = strchr(redir->ip, ':');
 	if (separator != NULL)
 	{
-		host = g_strndup(redir->ip, (int)separator - (int)host);
+		host = g_strndup(redir->ip, (int)separator - (int)redir->ip);
 		port = atoi(separator + 1);
 	}
 	else