Don't cast away constness (except where APIs render that impossible).

svn path=/trunk/; revision=50854
This commit is contained in:
Guy Harris 2013-07-23 23:34:45 +00:00
parent 7f7733579c
commit 0751daed8a
1 changed files with 1 additions and 1 deletions

View File

@ -1582,7 +1582,7 @@ gzwfile_write(GZWFILE_T state, const void *buf, guint len)
memcpy(strm->next_in + strm->avail_in, buf, n);
strm->avail_in += n;
state->pos += n;
buf = (char *)buf + n;
buf = (const char *)buf + n;
len -= n;
if (len && gz_comp(state, Z_NO_FLUSH) == -1)
return 0;