openbsd-ports/graphics/xv/patches/patch-xvtext_c
sturm 06cb6c48c0 Add some sanity checking in XV. Patches from Marcus Meissner
adapted by rohee@ by way of millert@

while here, adapt patches to regular naming scheme
2004-09-21 18:46:03 +00:00

12 lines
421 B
Plaintext

$OpenBSD: patch-xvtext_c,v 1.1 2004/09/21 18:46:04 sturm Exp $
--- xvtext.c.orig Sat Jan 14 00:46:28 1995
+++ xvtext.c Tue Sep 21 06:50:28 2004
@@ -293,6 +293,7 @@ void OpenTextView(text, len, title, free
tv->textlen = len;
tv->freeonclose = freeonclose;
strncpy(tv->title, title, (size_t) TITLELEN-1);
+ tv->title[TITLELEN-1] = '\0';
computeText(tv); /* compute # lines and linestarts array */