From 86b2965442c13c97f4634c1d28a58c88ea48168a Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Mon, 9 Mar 2009 14:30:32 +0100 Subject: Fixed problem with applet tooltip on x86_64 --- src/Applet/CCApplet.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Applet/CCApplet.cpp') diff --git a/src/Applet/CCApplet.cpp b/src/Applet/CCApplet.cpp index eb2fb0a..27eef76 100644 --- a/src/Applet/CCApplet.cpp +++ b/src/Applet/CCApplet.cpp @@ -68,11 +68,13 @@ void CApplet::SetIconTooltip(const char *format, ...) va_start (args, format); while((n = vsnprintf (buf, size, format, args)) > (int)size) { + va_end (args); // string was larger than our buffer // alloc larger buffer size = n+1; delete[] buf; buf = new char[size]; + va_start (args, format); } va_end (args); if (n != -1) -- cgit