X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/492a04dbc27f0ccb0d8d4fcc8da529df0cd254c9..e0e7dff87dc3f482da6ab00317664474b0f82995:/misc.c 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;