Bug in imported sw :(
This commit is contained in:
parent
768b17751b
commit
b0766abb5c
@ -86,7 +86,7 @@ mem_write (void *c, const char *buf, int n)
|
|||||||
if (cookie->eof < cookie->pos)
|
if (cookie->eof < cookie->pos)
|
||||||
memset (cbuf + cookie->eof, '\0', cookie->pos - cookie->eof);
|
memset (cbuf + cookie->eof, '\0', cookie->pos - cookie->eof);
|
||||||
memcpy (cbuf + cookie->pos, buf, n);
|
memcpy (cbuf + cookie->pos, buf, n);
|
||||||
cookie->pos = n;
|
cookie->pos += n;
|
||||||
/* If the user has previously written beyond the current position,
|
/* If the user has previously written beyond the current position,
|
||||||
remember what the trailing NUL is overwriting. Otherwise,
|
remember what the trailing NUL is overwriting. Otherwise,
|
||||||
extend the stream. */
|
extend the stream. */
|
||||||
|
Reference in New Issue
Block a user