X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f167b46b42b81f8f646e594057535f05b05027f..51c42fc50a57a09392e7d119608b74f91cf85d05:/src/gtk/taskbar.cpp diff --git a/src/gtk/taskbar.cpp b/src/gtk/taskbar.cpp index bfd2341e2d..2b50819305 100644 --- a/src/gtk/taskbar.cpp +++ b/src/gtk/taskbar.cpp @@ -60,9 +60,10 @@ bool wxTaskBarIconAreaBase::IsProtocolSupported() Display *display = GDK_DISPLAY(); Screen *screen = DefaultScreenOfDisplay(display); - wxString name; - name.Printf(_T("_NET_SYSTEM_TRAY_S%d"), XScreenNumberOfScreen(screen)); - Atom atom = XInternAtom(display, name.ToAscii(), False); + char name[32]; + g_snprintf(name, sizeof(name), "_NET_SYSTEM_TRAY_S%d", + XScreenNumberOfScreen(screen)); + Atom atom = XInternAtom(display, name, False); Window manager = XGetSelectionOwner(display, atom);