changeset 8981:e40f9afd420e

[gaim-migrate @ 9756] Fix a bug in gaim_network_ip_atoi. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Thu, 20 May 2004 00:07:15 +0000
parents 382bbf503c3d
children a4fd6666bb83
files src/network.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/network.c	Wed May 19 22:26:57 2004 +0000
+++ b/src/network.c	Thu May 20 00:07:15 2004 +0000
@@ -34,13 +34,13 @@
 gaim_network_ip_atoi(const char *ip)
 {
 	static unsigned char ret[4];
-	gchar delimiter = '.';
+	gchar *delimiter = ".";
 	gchar **split;
 	int i;
 
 	g_return_val_if_fail(ip != NULL, NULL);
 
-	split = g_strsplit(ip, &delimiter, 4);
+	split = g_strsplit(ip, delimiter, 4);
 	for (i = 0; split[i] != NULL; i++)
 		ret[i] = atoi(split[i]);
 	g_strfreev(split);