diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-03-09 14:30:32 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-03-09 14:30:32 +0100 |
commit | 86b2965442c13c97f4634c1d28a58c88ea48168a (patch) | |
tree | 321c1e34ef8a575309903e8a4c3a5dbefb6a082a | |
parent | 1a15bf5808c146767253f6b639967c219ad2e37f (diff) | |
download | abrt-86b2965442c13c97f4634c1d28a58c88ea48168a.tar.gz abrt-86b2965442c13c97f4634c1d28a58c88ea48168a.tar.xz abrt-86b2965442c13c97f4634c1d28a58c88ea48168a.zip |
Fixed problem with applet tooltip on x86_64
-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) |