X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/cbb9532e6e94e02588cbd11b1a708df5e26fea7b..37ea5668ad31c1ae5427fa5fa0fae7143d5e6ddf:/misc.c?ds=sidebyside diff --git a/misc.c b/misc.c index 496d30e3..e4c6d4ac 100644 --- a/misc.c +++ b/misc.c @@ -174,9 +174,9 @@ int bufchain_size(bufchain *ch) return ch->buffersize; } -void bufchain_add(bufchain *ch, void *data, int len) +void bufchain_add(bufchain *ch, const void *data, int len) { - char *buf = (char *)data; + const char *buf = (const char *)data; ch->buffersize += len;