]> git.pld-linux.org Git - packages/Canna.git/blame - Canna-wconv.patch
- looks outdated
[packages/Canna.git] / Canna-wconv.patch
CommitLineData
e4bc9042
JB
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 @@
4 char *buf = (char *)0;
5
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);
10 if (buf) {
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);
16 }
17 }
18 retval = SendType6Reply(client, wThrough, EXTPROTO, stat, buf, size);
This page took 0.083209 seconds and 4 git commands to generate.