From 9d6a005bb23cb63f73846de85f413681a043d04d Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 23 Aug 1988 12:54:16 +0000 Subject: [PATCH] minor change: use int in array index --- modules/src/input/inp_pkg.body | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/src/input/inp_pkg.body b/modules/src/input/inp_pkg.body index 153e5cf55..ce2f5969c 100644 --- a/modules/src/input/inp_pkg.body +++ b/modules/src/input/inp_pkg.body @@ -121,7 +121,7 @@ readfile(fd, fn, size, pbuf) free(*pbuf); return 0; } - (*pbuf)[*size] = '\0'; /* invoke loadbuf() at end */ + (*pbuf)[rsize] = '\0'; /* invoke loadbuf() at end */ return 1; } #endif INP_READ_IN_ONE -- 2.34.1