summaryrefslogtreecommitdiff
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-07-23 23:34:45 +0000
committerGuy Harris <guy@alum.mit.edu>2013-07-23 23:34:45 +0000
commit0751daed8aaec513d0798780ca12f5f28478e449 (patch)
tree474494469b2e7ee2c036781582f4f0da0e0b1533 /wiretap
parent7f7733579cdf4370344ce84addb9c38599043114 (diff)
downloadwireshark-0751daed8aaec513d0798780ca12f5f28478e449.tar.gz
Don't cast away constness (except where APIs render that impossible).
svn path=/trunk/; revision=50854
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/file_wrappers.c2
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;