openbsd-ports/x11/wmi/patches/patch-src_draw_cpp
2022-03-11 20:15:18 +00:00

14 lines
533 B
Plaintext

Fix buffer overrun.
--- src/draw.cpp.orig Tue Jan 20 13:58:35 2015
+++ src/draw.cpp Tue Jan 20 13:58:54 2015
@@ -235,7 +235,7 @@ void Draw::drawInputModeButton(Window window, GC gc, R
XCORE->setForeground(gc, background);
XCORE->fillRectangle(window, gc, rect);
- XPoint shadowButtonPoints[2];
+ XPoint shadowButtonPoints[3];
shadowButtonPoints[0].x = rect->x() + 2 * FIGURE_DISTANCE;
shadowButtonPoints[0].y = rect->y() + FIGURE_DISTANCE;
shadowButtonPoints[1].x = rect->x() + 2 * FIGURE_DISTANCE;