diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-07-23 23:34:45 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-07-23 23:34:45 +0000 |
commit | 0751daed8aaec513d0798780ca12f5f28478e449 (patch) | |
tree | 474494469b2e7ee2c036781582f4f0da0e0b1533 /wiretap/file_wrappers.c | |
parent | 7f7733579cdf4370344ce84addb9c38599043114 (diff) |
Don't cast away constness (except where APIs render that impossible).
svn path=/trunk/; revision=50854
Diffstat (limited to 'wiretap/file_wrappers.c')
-rw-r--r-- | wiretap/file_wrappers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/file_wrappers.c b/wiretap/file_wrappers.c index 2eff49eb50..1a6492a0c4 100644 --- a/wiretap/file_wrappers.c +++ b/wiretap/file_wrappers.c @@ -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; |