$OpenBSD: patch-Buttons_C,v 1.1.1.1 2007/04/27 18:31:12 matthieu Exp $ --- Buttons.C.orig Fri Mar 21 12:12:30 1997 +++ Buttons.C Wed Apr 11 22:29:23 2007 @@ -327,7 +327,7 @@ void WindowManager::menu(XButtonEvent *e) void WindowManager::showGeometry(int x, int y) { char string[20]; - sprintf(string, "%d %d\n", x, y); + snprintf(string, sizeof(string), "%d %d\n", x, y); int width = XTextWidth(m_menuFont, string, strlen(string)) + 8; int height = m_menuFont->ascent + m_menuFont->descent + 8; int mx = DisplayWidth (display(), m_screenNumber) - 1;