[Pinfo-devel] r110 - pinfo/trunk/src
Bas Zoetekouw
bas at costa.debian.org
Thu Sep 1 19:13:47 UTC 2005
Author: bas
Date: 2005-09-01 19:13:47 +0000 (Thu, 01 Sep 2005)
New Revision: 110
Modified:
pinfo/trunk/src/video.c
Log:
Added an extra safety check on message[i] in showscreen()
Modified: pinfo/trunk/src/video.c
===================================================================
--- pinfo/trunk/src/video.c 2005-09-01 19:11:35 UTC (rev 109)
+++ pinfo/trunk/src/video.c 2005-09-01 19:13:47 UTC (rev 110)
@@ -88,6 +88,8 @@
attrset(normal);
for (i = pos;(i < lines) &&(i < pos + maxy - 2); i++)
{
+ if (!message[i]) continue;
+
int tmp = strlen(message[i]) - 1;
message[i][tmp] = 0;
if (tmp>column)
More information about the Pinfo-devel
mailing list