From 173bad8c6f74c45a75db6d677846c1dde69d7cf9 Mon Sep 17 00:00:00 2001 From: dborth Date: Thu, 22 Jul 2010 07:40:16 +0000 Subject: [PATCH] source tidy --- source/networkop.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/networkop.cpp b/source/networkop.cpp index fcbc25b..25cfb18 100644 --- a/source/networkop.cpp +++ b/source/networkop.cpp @@ -50,12 +50,9 @@ void UpdateCheck() if(!updateChecked && networkInit && (isMounted[DEVICE_SD] || isMounted[DEVICE_USB])) { updateChecked = true; - static char url[128]; - snprintf(url, 128, "http://vba-wii.googlecode.com/svn/trunk/update.xml"); - u8 * tmpbuffer = (u8 *)memalign(32,32768); - memset(tmpbuffer, 0, 32768); + u8 tmpbuffer[256]; - if (http_request(url, NULL, tmpbuffer, 32768, SILENT) > 0) + if (http_request("http://vba-wii.googlecode.com/svn/trunk/update.xml", NULL, tmpbuffer, 256, SILENT) > 0) { mxml_node_t *xml; mxml_node_t *item; @@ -103,7 +100,6 @@ void UpdateCheck() mxmlDelete(xml); } } - free(tmpbuffer); } }