forked from osmocom/wireshark
Don't cast away constness (except where APIs render that impossible).
svn path=/trunk/; revision=50854
This commit is contained in:
parent
7f7733579c
commit
0751daed8a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue