diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-09-26 22:29:39 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-09-26 22:29:39 +0000 |
commit | c23d44479a48391e6b8cfe2e3c55b55a1b1938b4 (patch) | |
tree | 9b23cbbb1a2b5c6fee9dff6457c813cad10b1034 | |
parent | dd113de85af565be92305b9bfc5e536bd9272a26 (diff) | |
download | xine-lib-c23d44479a48391e6b8cfe2e3c55b55a1b1938b4.tar.gz xine-lib-c23d44479a48391e6b8cfe2e3c55b55a1b1938b4.tar.bz2 |
Avoid an off-by-one found by Coverity Scan CID 133.
CVS patchset: 8311
CVS date: 2006/09/26 22:29:39
-rw-r--r-- | src/input/vcd/libvcd/info.c | 6 |
1 files 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 <rocky@panix.com> @@ -59,7 +59,7 @@ #include <stddef.h> #include <errno.h> -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); |