summaryrefslogtreecommitdiffstats
path: root/usr.bin/vi/ex/ex_source.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/vi/ex/ex_source.c')
-rw-r--r--usr.bin/vi/ex/ex_source.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vi/ex/ex_source.c b/usr.bin/vi/ex/ex_source.c
index 468fd79ee2c..b52c527716f 100644
--- a/usr.bin/vi/ex/ex_source.c
+++ b/usr.bin/vi/ex/ex_source.c
@@ -10,7 +10,7 @@
#include "config.h"
#ifndef lint
-static const char sccsid[] = "@(#)ex_source.c 10.11 (Berkeley) 6/30/96";
+static const char sccsid[] = "@(#)ex_source.c 10.12 (Berkeley) 8/10/96";
#endif /* not lint */
#include <sys/types.h>
@@ -62,7 +62,7 @@ ex_source(sp, cmdp)
goto err;
}
- MALLOC(sp, bp, char *, (size_t)sb.st_size);
+ MALLOC(sp, bp, char *, (size_t)sb.st_size + 1);
if (bp == NULL) {
(void)close(fd);
return (1);