openbsd-ports/misc/calentool/patches/patch-wpaint_c
naddy db65ac5a61 Fix a one-byte buffer overflow reported by Tim Donahue
<tdonahue@vonmail.vonworldwide.com> and a very wrong type conversion.
2006-05-27 16:54:16 +00:00

13 lines
320 B
Plaintext

$OpenBSD: patch-wpaint_c,v 1.1 2006/05/27 16:54:16 naddy Exp $
--- wpaint.c.orig Sat May 27 18:32:52 2006
+++ wpaint.c Sat May 27 18:35:16 2006
@@ -179,7 +179,7 @@ paint_week_trim()
{
int i, x, y, rightx;
int cwidth;
- char c[8];
+ char c[9];
cwidth = xv_get(font, FONT_DEFAULT_CHAR_WIDTH);
First = current;