changeset 8552:91dae94b67a5

[gaim-migrate @ 9294] xgrimx says this is better committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 01 Apr 2004 23:03:13 +0000
parents 379320562c15
children 225e22e5c89e
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Thu Apr 01 22:59:58 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Thu Apr 01 23:03:13 2004 +0000
@@ -2506,7 +2506,7 @@
 
 		d->gc = gc;
 		d->sn = g_strdup(userinfo->sn);
-		strncpy(d->ip, args->verifiedip, sizeof(d->ip));
+		snprintf(d->ip, sizeof(d->ip), "%s:%d", args->verifiedip, args->port);
 		memcpy(d->cookie, args->cookie, 8);
 		g_snprintf(buf, sizeof buf, _("%s has just asked to directly connect to %s"), userinfo->sn, username);