comparison src/protocols/msn/utils.c @ 9193:502707ca1836

[gaim-migrate @ 9988] Patch by Felipe Contreras to add MSN file transfer and buddy icons. Please test and report any bugs! committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 06 Jun 2004 02:39:08 +0000
parents cab225a333b5
children ab6636c5a136
comparison
equal deleted inserted replaced
9192:5655dcd94d0f 9193:502707ca1836
312 *message = g_strdup(msg); 312 *message = g_strdup(msg);
313 313
314 g_free(fontface); 314 g_free(fontface);
315 g_free(msg); 315 g_free(msg);
316 } 316 }
317
318 void
319 msn_parse_socket(const char *str, char **ret_host, int *ret_port)
320 {
321 char *host;
322 char *c;
323 int port;
324
325 host = g_strdup(str);
326
327 if ((c = strchr(host, ':')) != NULL)
328 {
329 *c = '\0';
330 port = atoi(c + 1);
331 }
332 else
333 port = 1863;
334
335 *ret_host = host;
336 *ret_port = port;
337 }