1 --- Canna35b2/server/wconvert.c.orig 2002-11-01 17:21:49.000000000 +0900
2 +++ Canna35b2/server/wconvert.c 2002-11-01 17:23:25.000000000 +0900
3 @@ -2096,12 +2096,12 @@
6 if (validcontext(cxnum, client, wThrough)) {
7 - buf = malloc((int)Request.type20.bufsize);
8 + content_size = Request.type20.datalen - (SIZEOFINT * 2 + SIZEOFSHORT);
9 + buf = malloc(content_size);
11 - content_size = Request.type20.datalen - (SIZEOFINT * 2 + SIZEOFSHORT);
12 bcopy(Request.type20.buf, buf, content_size);
13 stat = size = RkThrough(cxnum, Request.type20.command,
14 - buf, content_size, (int)Request.type20.bufsize);
15 + buf, content_size, content_size);
18 retval = SendType6Reply(client, wThrough, EXTPROTO, stat, buf, size);