View | Details | Raw Unified | Return to bug 133899
Collapse All | Expand All

(-)src/hanja.c (-3 / +3 lines)
Lines 345-351 Link Here
345
345
346
    if ( ami_codeset==AMI_UTF8) {
346
    if ( ami_codeset==AMI_UTF8) {
347
        /* U+AC00 -> EAB080, U+D7A3 -> ED9EA3 */
347
        /* U+AC00 -> EAB080, U+D7A3 -> ED9EA3 */
348
	int ilen,olen;
348
	size_t ilen,olen;
349
	char *iptr=word;
349
	char *iptr=word;
350
	char *optr;
350
	char *optr;
351
       
351
       
Lines 399-406 Link Here
399
    if ( ami_codeset==AMI_EUC) 
399
    if ( ami_codeset==AMI_EUC) 
400
	match=g_strdup(s);
400
	match=g_strdup(s);
401
    else {
401
    else {
402
	int ilen=strlen(s)+1;
402
	size_t ilen=strlen(s)+1;
403
	int olen=ilen*2;
403
	size_t olen=ilen*2;
404
	char *iptr=s;
404
	char *iptr=s;
405
	char *optr;
405
	char *optr;
406
	match=g_new(gchar,olen);
406
	match=g_new(gchar,olen);
(-)src/johabcode2.c (-7 / +7 lines)
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) {
(-)src/si.c (-1 / +1 lines)
Lines 174-180 Link Here
174
    else {
174
    else {
175
        char tbuf[3];
175
        char tbuf[3];
176
	char *iptr,*optr;
176
	char *iptr,*optr;
177
	int ilen,olen;
177
	size_t ilen,olen;
178
	for (i = 0; i < row*col; i++) {
178
	for (i = 0; i < row*col; i++) {
179
	    tbuf[0] = first;
179
	    tbuf[0] = first;
180
	    tbuf[1] = k++;
180
	    tbuf[1] = k++;

Return to bug 133899