diff options
author | ru <ru@FreeBSD.org> | 2002-07-22 16:52:57 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-07-22 16:52:57 +0000 |
commit | f10c49f50ce56ec7bfbe5d6c4868251e2d4a1646 (patch) | |
tree | 69fb6353246292f64a8c7babbd9a86da48cbb4dc /contrib/texinfo/info/filesys.c | |
parent | 5500b59c459afe212e4ee8d1c1847e051a9b7653 (diff) | |
download | FreeBSD-src-f10c49f50ce56ec7bfbe5d6c4868251e2d4a1646.zip FreeBSD-src-f10c49f50ce56ec7bfbe5d6c4868251e2d4a1646.tar.gz |
Import of stripped down GNU texinfo 4.2
Diffstat (limited to 'contrib/texinfo/info/filesys.c')
-rw-r--r-- | contrib/texinfo/info/filesys.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/texinfo/info/filesys.c b/contrib/texinfo/info/filesys.c index cdf1365..7ce6017 100644 --- a/contrib/texinfo/info/filesys.c +++ b/contrib/texinfo/info/filesys.c @@ -1,5 +1,5 @@ /* filesys.c -- filesystem specific functions. - $Id: filesys.c,v 1.14 2002/03/02 15:05:04 karl Exp $ + $Id: filesys.c,v 1.15 2002/03/23 20:45:24 karl Exp $ Copyright (C) 1993, 97, 98, 2000 Free Software Foundation, Inc. @@ -510,6 +510,7 @@ filesys_read_info_file (pathname, filesize, finfo, is_compressed) want to waste storage. */ if (*filesize < st_size) contents = (char *)xrealloc (contents, 1 + *filesize); + contents[*filesize] = '\0'; return (contents); } @@ -596,6 +597,7 @@ filesys_read_compressed (pathname, filesize, finfo) { *filesize = convert_eols (contents, offset); contents = (char *)xrealloc (contents, 1 + *filesize); + contents[*filesize] = '\0'; } } else |