Lines 40-46
Link Here
|
40 |
int |
40 |
int |
41 |
johab_to_wansung(char *s, int johab) |
41 |
johab_to_wansung(char *s, int johab) |
42 |
{ |
42 |
{ |
43 |
int in_len, out_len; |
43 |
size_t in_len, out_len; |
44 |
char in[2]; |
44 |
char in[2]; |
45 |
char *in_p, *out_p; |
45 |
char *in_p, *out_p; |
46 |
if (johab < 128) { |
46 |
if (johab < 128) { |
Lines 68-75
Link Here
|
68 |
{ |
68 |
{ |
69 |
char *out_p = s; |
69 |
char *out_p = s; |
70 |
char *in_p = johab; |
70 |
char *in_p = johab; |
71 |
int in_len = len; |
71 |
size_t in_len = len; |
72 |
int out_len = len; |
72 |
size_t out_len = len; |
73 |
if (johab_to_wan_cd == (iconv_t) -1) { |
73 |
if (johab_to_wan_cd == (iconv_t) -1) { |
74 |
johab_to_wan_cd = iconv_open(CD_EUC_KR, CD_JOHAB); |
74 |
johab_to_wan_cd = iconv_open(CD_EUC_KR, CD_JOHAB); |
75 |
if (johab_to_wan_cd == (iconv_t) -1) { |
75 |
if (johab_to_wan_cd == (iconv_t) -1) { |
Lines 84-90
Link Here
|
84 |
int |
84 |
int |
85 |
johab_from_wansung(char *s, int wansung) |
85 |
johab_from_wansung(char *s, int wansung) |
86 |
{ |
86 |
{ |
87 |
int in_len, out_len; |
87 |
size_t in_len, out_len; |
88 |
char in[2]; |
88 |
char in[2]; |
89 |
char *in_p, *out_p; |
89 |
char *in_p, *out_p; |
90 |
if (wansung < 128) { |
90 |
if (wansung < 128) { |
Lines 112-119
Link Here
|
112 |
{ |
112 |
{ |
113 |
char *out_p = s; |
113 |
char *out_p = s; |
114 |
char *in_p = wansung; |
114 |
char *in_p = wansung; |
115 |
int in_len = len; |
115 |
size_t in_len = len; |
116 |
int out_len = len; |
116 |
size_t out_len = len; |
117 |
if (wan_to_johab_cd == (iconv_t) -1) { |
117 |
if (wan_to_johab_cd == (iconv_t) -1) { |
118 |
wan_to_johab_cd = iconv_open(CD_JOHAB, CD_EUC_KR); |
118 |
wan_to_johab_cd = iconv_open(CD_JOHAB, CD_EUC_KR); |
119 |
if (wan_to_johab_cd == (iconv_t) -1) { |
119 |
if (wan_to_johab_cd == (iconv_t) -1) { |
Lines 155-161
Link Here
|
155 |
int |
155 |
int |
156 |
johab_to_utf8(char *s, int johab) |
156 |
johab_to_utf8(char *s, int johab) |
157 |
{ |
157 |
{ |
158 |
int in_len, out_len; |
158 |
size_t in_len, out_len; |
159 |
char in[2]; |
159 |
char in[2]; |
160 |
char *in_p, *out_p; |
160 |
char *in_p, *out_p; |
161 |
if (johab < 128) { |
161 |
if (johab < 128) { |