2
## 03_fix-bug586-uim-crash.dpatch by Masahito Omote <omote@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
8
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
12
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
13
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
16
-patch) patch -p1 ${patch_opts} < $0;;
17
-unpatch) patch -R -p1 ${patch_opts} < $0;;
19
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
26
diff -urNad /home/omote/debian/debian-official/japanese/pkg-ime/uim/uim/canna.c uim/uim/canna.c
27
--- /home/omote/debian/debian-official/japanese/pkg-ime/uim/uim/canna.c 2004-05-02 17:22:38.000000000 +0900
28
+++ uim/uim/canna.c 2004-05-02 18:00:26.000000000 +0900
33
- if(cannaserver != NULL)
34
+ if(cannaserver != NULL) {
45
+ memset(&api, 0, sizeof(struct canna_api));
48
- if(context_array != NULL)
49
+ if(context_array != NULL) {
51
+ context_array = NULL;
54
#endif /* HAVE_CANNA_RK_H */
55
diff -urNad /home/omote/debian/debian-official/japanese/pkg-ime/uim/uim/uim.c uim/uim/uim.c
56
--- /home/omote/debian/debian-official/japanese/pkg-ime/uim/uim/uim.c 2004-05-02 17:22:43.000000000 +0900
57
+++ uim/uim/uim.c 2004-05-02 18:00:34.000000000 +0900
59
pw = getpwuid(getuid());
60
fn = malloc(strlen(pw->pw_dir)+10);
61
sprintf(fn, "%s/.uim", pw->pw_dir);
72
+ if (!uim_initialized) {
76
/* release still active contexts */
77
for (i = 0; i < CONTEXT_ARRAY_SIZE; i++) {
78
if (context_array[i]) {