tcc will limit output lines to 512 characters not including CRLF. In
addition, there needs to be space in the buffer for the trailing NUL
that fgets will append.

Without this change, xts-report will exit prematurely if it sees a
maximum length line.

Signed-off-by: Peter Harris <phar...@opentext.com>
---
 xts5/src/bin/reports/xts-report.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xts5/src/bin/reports/xts-report.c 
b/xts5/src/bin/reports/xts-report.c
index 8e4b1e4..c1ca468 100644
--- a/xts5/src/bin/reports/xts-report.c
+++ b/xts5/src/bin/reports/xts-report.c
@@ -219,7 +219,7 @@ int fabort=0;
 /*message type*/
 int    mtype;
 /*messages read in here*/
-char   linebuf[512];
+char   linebuf[515];
 /*pointer into where we are in the message*/
 char   *pline;
 
-- 
1.7.2.5

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to