Correct an off-by-one error.
/*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
*
- * $Id: fileObject.c,v 1.9 2000/04/12 17:33:16 simonmar Exp $
+ * $Id: fileObject.c,v 1.10 2000/04/14 16:26:53 rrt Exp $
*
* hPutStr Runtime Support
*/
fo->bufWPtr=0;
}
ipos = fo->bufWPtr;
- len = fo->bufSize - fo->bufWPtr + 1;
+ len = fo->bufSize - fo->bufWPtr;
p = (unsigned char*)fo->buf + fo->bufWPtr;
if ((count =
bufRPtr == -1 => buffer is empty.
*/
- int bufSize;
+ int bufSize; /* the size of the buffer, i.e. the number of bytes
+ malloced */
int flags;
struct _IOFileObject* connectedTo;