Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
13594:893ef02b6e28 | 13595:e9289db48a5d |
---|---|
1621 | 1621 |
1622 port = gaim_account_get_int(account, "port", OSCAR_DEFAULT_LOGIN_PORT); | 1622 port = gaim_account_get_int(account, "port", OSCAR_DEFAULT_LOGIN_PORT); |
1623 separator = strchr(redir->ip, ':'); | 1623 separator = strchr(redir->ip, ':'); |
1624 if (separator != NULL) | 1624 if (separator != NULL) |
1625 { | 1625 { |
1626 host = g_strndup(redir->ip, (int)separator - (int)host); | 1626 host = g_strndup(redir->ip, (int)separator - (int)redir->ip); |
1627 port = atoi(separator + 1); | 1627 port = atoi(separator + 1); |
1628 } | 1628 } |
1629 else | 1629 else |
1630 host = g_strdup(redir->ip); | 1630 host = g_strdup(redir->ip); |
1631 | 1631 |