Set fo->bufSize even if it's 0.
/*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
*
/*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
*
- * $Id: setBuffering.c,v 1.7 2000/03/28 08:48:44 simonmar Exp $
+ * $Id: setBuffering.c,v 1.8 2000/04/14 16:19:43 rrt Exp $
*
* hSetBuffering Runtime Support
*/
*
* hSetBuffering Runtime Support
*/
fo->buf = malloc(size*sizeof(char));
if (fo->buf == NULL) {
return -1;
fo->buf = malloc(size*sizeof(char));
if (fo->buf == NULL) {
return -1;
- }
- fo->bufSize = size;
#ifndef mingw32_TARGET_OS
if (isaterm) {
#ifndef mingw32_TARGET_OS
if (isaterm) {