From 8f0b7ae8e77984a30732170d298c3f24ac185a76 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Sun, 16 May 2010 20:18:05 +0000 Subject: Fixed bogus error message git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@516 4f64403b-2f21-0410-a795-97e2b3489a10 --- updater/socket.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'updater/socket.cpp') diff --git a/updater/socket.cpp b/updater/socket.cpp index 729b997..defa292 100644 --- a/updater/socket.cpp +++ b/updater/socket.cpp @@ -148,9 +148,10 @@ bool GetFile(char *url, TCHAR *temp_folder, char *plugin_name, char *version, bo } else { - TCHAR buff[1024]; - mir_sntprintf(buff, SIZEOF(buff), TranslateT("Failed to download \"%s\" - Invalid response, code %d"), plugin_name, resp->resultCode); + TCHAR buff[1024], *tmp; + mir_sntprintf(buff, SIZEOF(buff), TranslateT("Failed to download \"%s\" - Invalid response, code %d"), (tmp = mir_a2t(plugin_name)), resp->resultCode); ShowError(buff); + mir_free(tmp); } CallService(MS_NETLIB_FREEHTTPREQUESTSTRUCT, 0, (LPARAM)resp); } -- cgit v1.2.3