14 lines
533 B
Plaintext
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;
|