Commit d51f9474cea1292b7fb67a5c08cd767e822ad280
1 parent
c4257b37
Exists in
master
Corrigindo função de leitura de tela
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
latest/src/lib/screen.c
... | ... | @@ -318,7 +318,7 @@ LIB3270_EXPORT int lib3270_get_contents(H3270 *h, int first, int last, unsigned |
318 | 318 | if(first > len || last > len || first < 0 || last < 0) |
319 | 319 | return EFAULT; |
320 | 320 | |
321 | - for(baddr = first; baddr < last;baddr++) | |
321 | + for(baddr = first; baddr <= last;baddr++) | |
322 | 322 | { |
323 | 323 | *(chr++) = ea_buf[baddr].chr ? ea_buf[baddr].chr : ' '; |
324 | 324 | *(attr++) = ea_buf[baddr].attr; | ... | ... |