Fixed input buffers, thanks to David Lichteblau.

This commit is contained in:
leitner
2001-11-25 22:37:38 +00:00
parent b40bae5bf4
commit f6d554da10
5 changed files with 13 additions and 11 deletions

View File

@@ -3,7 +3,7 @@
int buffer_putalign(buffer* b,const char* buf,unsigned int len) {
int tmp;
while (len>(tmp=b->n-b->p)) {
while (len>(tmp=b->a-b->p)) {
byte_copy(b->x+b->p, tmp, buf);
b->p+=tmp;
buf+=tmp;