read_fdport_substring() didn't reset the port's peek-char to #F when
consuming it. Reported by JSC 10/16/96, with fix.
This commit is contained in:
parent
6f951db725
commit
14f8b65a74
|
@ -395,6 +395,7 @@ int read_fdport_substring(scheme_value buf, int start, int end, scheme_value dat
|
|||
if( len > 0 ) {
|
||||
char *p = StrByte(buf,start);
|
||||
*p++ = EXTRACT_CHAR(peek);
|
||||
*PortData_Peek(data) = SCHFALSE;
|
||||
return 1 + fread(p, 1, MIN(len-1, fbufcount(f)), f);
|
||||
}
|
||||
else return 0;
|
||||
|
|
Loading…
Reference in New Issue