Skip to content
Snippets Groups Projects
Commit 881053b6 authored by Reuben Thomas's avatar Reuben Thomas
Browse files

[project @ 2000-04-14 16:26:53 by rrt]

Correct an off-by-one error.
parent f5ee8899
No related merge requests found
/*
* (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
*/
......@@ -128,7 +128,7 @@ fill_up_line_buffer(IOFileObject* fo)
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 =
......
......@@ -29,7 +29,8 @@ typedef struct _IOFileObject {
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment