diff --git a/wmifs/wmifs/wmifs.c b/wmifs/wmifs/wmifs.c index ebdf12b..f7df9b7 100644 --- a/wmifs/wmifs/wmifs.c +++ b/wmifs/wmifs/wmifs.c @@ -74,6 +74,11 @@ ---- Changes: --- + 07/21/1999 (Stephen Pitts, smpitts@midsouth.rr.com) + * Added new constant: BUFFER_SIZE to determine the size + of the buffer used in fgets() operations. Right now, + its at 512 bytes. Fixed crashing on my system when + one line of /proc/net/dev was longer than 128 bytes 04/05/1998 (Martijn Pieterse, pieterse@xs4all.nl) * Changed the "middle of the waveform" line color * Moved the RedrawWindow out of the main loop. @@ -197,6 +202,8 @@ #define WMIFS_VERSION "1.2.1" +/* the size of the buffer read from /proc/net/* */ +#define BUFFER_SIZE 512 /**********************/ /* External Variables */ /**********************/ @@ -340,7 +347,7 @@ void wmifs_routine(int argc, char **argv) { long ipacket, opacket, istat, ostat; - char temp[128]; + char temp[BUFFER_SIZE]; char *p; for (i=0; i