mirror of
https://github.com/digarok/gsplus.git
synced 2024-11-24 06:34:02 +00:00
fix fst_read to actually read.
This commit is contained in:
parent
0bde878d05
commit
bc75666810
@ -1538,7 +1538,7 @@ static word32 fst_read(int class) {
|
|||||||
|
|
||||||
word16 newline_mask;
|
word16 newline_mask;
|
||||||
word32 rv = 0;
|
word32 rv = 0;
|
||||||
ssize_t ok;
|
int ok;
|
||||||
|
|
||||||
newline_mask = get_memory16_c(global_buffer, 0);
|
newline_mask = get_memory16_c(global_buffer, 0);
|
||||||
if (newline_mask) {
|
if (newline_mask) {
|
||||||
@ -1568,7 +1568,7 @@ static word32 fst_read(int class) {
|
|||||||
else if (read_count == 0) rv = eofEncountered;
|
else if (read_count == 0) rv = eofEncountered;
|
||||||
if (read_count > 0) {
|
if (read_count > 0) {
|
||||||
transfer_count = read_count;
|
transfer_count = read_count;
|
||||||
for (size_t i = 0; i < ok; ++i) {
|
for (size_t i = 0; i < transfer_count; ++i) {
|
||||||
set_memory_c(data_buffer + i, data[i], 0);
|
set_memory_c(data_buffer + i, data[i], 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user