diff options
Diffstat (limited to 'src/Applet/CCApplet.cpp')
-rw-r--r-- | src/Applet/CCApplet.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Applet/CCApplet.cpp b/src/Applet/CCApplet.cpp index eb2fb0a2..27eef761 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) |