diff src/util.c @ 278:29e1669b006b

[gaim-migrate @ 288] check versions works (?) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 29 May 2000 00:56:37 +0000
parents fa67d29b53d5
children b402a23f35df
line wrap: on
line diff
--- a/src/util.c	Sun May 28 22:09:30 2000 +0000
+++ b/src/util.c	Mon May 29 00:56:37 2000 +0000
@@ -727,22 +727,21 @@
 	char *cur_ver;
 	char *tmp;
 
-	cur_ver = (char *)malloc(BUF_LONG);
 	tmp = (char *)malloc(BUF_LONG);
 
 	cur_ver = (char *)grab_url("http://www.marko.net/gaim/latest-gaim");
 
 	if (!strncasecmp(cur_ver, "g00", 3))
 	{
-		free(cur_ver);
-		free(tmp);
+		g_free(cur_ver);
+		g_free(tmp);
 		return;
 	}
 
 	g_snprintf(tmp, BUF_LONG, "%s", strstr(cur_ver, "plain")+9);
 	g_strchomp(tmp);
 
-	if (strcasecmp(tmp, latest_ver))
+	if (strcmp(tmp, latest_ver))
 	{
 		g_snprintf(cur_ver, BUF_LONG, "GAIM v%s is now available.\n\nDownload it at http://www.marko.net/gaim\n", tmp);