diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-08-04 15:28:21 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-08-04 15:28:21 +0000 |
commit | cb18c2b5c51eaa278965cb9f2d52be78be9f646c (patch) | |
tree | b6be8239b2958945c952077a897ad0efddb56c92 | |
parent | ade1249e35f7181432855ec8f1b10f9e265cc8f2 (diff) |
null terminate input
-rw-r--r-- | gnu/usr.bin/texinfo/makeinfo/makeinfo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/usr.bin/texinfo/makeinfo/makeinfo.c b/gnu/usr.bin/texinfo/makeinfo/makeinfo.c index 878fb8bff86..91898aec115 100644 --- a/gnu/usr.bin/texinfo/makeinfo/makeinfo.c +++ b/gnu/usr.bin/texinfo/makeinfo/makeinfo.c @@ -1,5 +1,5 @@ /* Makeinfo -- convert Texinfo source files into Info files. - $Id: makeinfo.c,v 1.3 1997/08/01 22:37:42 kstailey Exp $ + $Id: makeinfo.c,v 1.4 1997/08/04 15:28:20 kstailey Exp $ Copyright (C) 1987, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc. @@ -1293,6 +1293,8 @@ find_and_load (filename) extra unnecessary work each time it is called (that is a lot of times). The SIZE_OF_INPUT_TEXT is one past the actual end of the text. */ input_text[size_of_input_text] = '\n'; + /* Strictly necessary. */ + input_text[size_of_input_text+1] = '\0'; return (result); } |