06cb6c48c0
adapted by rohee@ by way of millert@ while here, adapt patches to regular naming scheme
12 lines
421 B
Plaintext
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 */
|
|
|