Added
Link Here
|
1 |
--- src/jcode.c.orig 2000-10-13 08:45:02.000000000 +0200 |
2 |
+++ src/jcode.c 2007-11-04 00:49:09.000000000 +0100 |
3 |
@@ -251,7 +251,7 @@ |
4 |
char * |
5 |
kanji_conv_auto(char *str, const char *dstset) |
6 |
{ |
7 |
- unsigned char *buf, *ret; |
8 |
+ char *buf, *ret; |
9 |
iconv_t cd; |
10 |
size_t insize = 0; |
11 |
size_t outsize = 0; |
12 |
@@ -278,7 +278,7 @@ |
13 |
break; |
14 |
} |
15 |
|
16 |
- buf = (unsigned char *)malloc(strlen(str)* 4 + 1); |
17 |
+ buf = malloc(strlen(str)* 4 + 1); |
18 |
if(!buf) |
19 |
return NULL; |
20 |
|
21 |
@@ -315,7 +315,6 @@ |
22 |
{ |
23 |
static char *jpcode = NULL; |
24 |
static char *locale_euc[] = { JCODE_LOCALE_EUC, NULL }; |
25 |
- static char *locale_jis[] = { JCODE_LOCALE_JIS, NULL }; |
26 |
static char *locale_sjis[] = { JCODE_LOCALE_SJIS, NULL }; |
27 |
|
28 |
static struct LOCALE_TABLE { |
29 |
@@ -352,7 +351,7 @@ |
30 |
char * |
31 |
kanji_conv(char *str, const char *dstset, const char *srcset) |
32 |
{ |
33 |
- unsigned char *buf, *ret; |
34 |
+ char *buf, *ret; |
35 |
iconv_t cd; |
36 |
size_t insize = 0; |
37 |
size_t outsize = 0; |
38 |
@@ -363,7 +362,7 @@ |
39 |
if(!str) |
40 |
return NULL; |
41 |
|
42 |
- buf = (unsigned char *)malloc(strlen(str) * 4 + 1); |
43 |
+ buf = malloc(strlen(str) * 4 + 1); |
44 |
if(!buf) |
45 |
return NULL; |
46 |
|