From c23d44479a48391e6b8cfe2e3c55b55a1b1938b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 26 Sep 2006 22:29:39 +0000 Subject: Avoid an off-by-one found by Coverity Scan CID 133. CVS patchset: 8311 CVS date: 2006/09/26 22:29:39 --- src/input/vcd/libvcd/info.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/input/vcd/libvcd/info.c b/src/input/vcd/libvcd/info.c index aa8d2a01d..d178968a8 100644 --- a/src/input/vcd/libvcd/info.c +++ b/src/input/vcd/libvcd/info.c @@ -1,5 +1,5 @@ /* - $Id: info.c,v 1.6 2006/09/26 18:52:41 dgp85 Exp $ + $Id: info.c,v 1.7 2006/09/26 22:29:39 dgp85 Exp $ Copyright (C) 2002, 2003, 2004 Rocky Bernstein @@ -59,7 +59,7 @@ #include #include -static const char _rcsid[] = "$Id: info.c,v 1.6 2006/09/26 18:52:41 dgp85 Exp $"; +static const char _rcsid[] = "$Id: info.c,v 1.7 2006/09/26 22:29:39 dgp85 Exp $"; #define BUF_COUNT 16 #define BUF_SIZE 80 @@ -1770,7 +1770,7 @@ vcdinfo_visit_lot (vcdinfo_obj_t *obj, bool extended) const char * vcdinfo_strip_trail (const char str[], size_t n) { - static char buf[1024]; + static char buf[1025]; int j; vcd_assert (n < 1024); -- cgit v1.2.3