From: ceriel Date: Tue, 23 Aug 1988 12:54:16 +0000 (+0000) Subject: minor change: use int in array index X-Git-Tag: release-5-5~2894 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=9d6a005bb23cb63f73846de85f413681a043d04d;p=ack.git minor change: use int in array index --- 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