blob: eac41e53621d6a7be2088e887ff1145d6036edb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
diff -Naur skktools-1.3.orig/skkdic-expr2.c skktools-1.3/skkdic-expr2.c
--- skktools-1.3.orig/skkdic-expr2.c 2006-01-04 19:35:06.000000000 +0900
+++ skktools-1.3/skkdic-expr2.c 2007-09-23 08:14:02.000000000 +0900
@@ -254,10 +254,10 @@
static GSList *splitCandidates(gchar *str)
{
- unsigned char *p, *q;
+ guchar *p, *q;
GSList *list = NULL;
- p = str;
+ p = (guchar *)str;
while(*p >= 0x20) {
if(*p == '/') {
q = ++p;
@@ -273,7 +273,7 @@
if(*q == '\0') break;
q++;
}
- list = g_slist_append(list, g_strndup(p, (int)q - (int)p));
+ list = g_slist_append(list, g_strndup((gchar *)p, q - p));
p = q;
} else {
p++;
|