diff options
Diffstat (limited to 'japanese/uim/files/patch-uim:uim-func.c')
-rw-r--r-- | japanese/uim/files/patch-uim:uim-func.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/japanese/uim/files/patch-uim:uim-func.c b/japanese/uim/files/patch-uim:uim-func.c new file mode 100644 index 000000000000..b5ed135e0e36 --- /dev/null +++ b/japanese/uim/files/patch-uim:uim-func.c @@ -0,0 +1,25 @@ +--- uim/uim-func.c.orig Sun Aug 31 15:09:52 2003 ++++ uim/uim-func.c Sun Aug 31 15:10:19 2003 +@@ -97,15 +97,17 @@ + char * + uim_code_conv(char *str, iconv_t ic) + { ++ int len, buflen; ++ char *realbuf, *outbuf, *inbuf; + + if(!str) + return NULL; + +- int len = strlen(str); +- int buflen = len * 6+3; +- char *realbuf = alloca(buflen); +- char *outbuf = realbuf; +- char *inbuf = str; ++ len = strlen(str); ++ buflen = len * 6+3; ++ realbuf = alloca(buflen); ++ outbuf = realbuf; ++ inbuf = str; + if (!ic) { + return strdup(str); + } |