blob: 5d171529d9fd50f13a33bbeba92f5c8da16d0179 (
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
|
diff -aur uim/uim-helper.c uim/uim-helper.c
--- uim/uim-helper.c 2010-08-22 19:23:37.646666698 +0200
+++ uim/uim-helper.c 2010-08-22 19:26:57.676666781 +0200
@@ -178,7 +178,7 @@
goto path_error;
}
- if (strlcpy(helper_path, pw->pw_dir, len) >= (size_t)len) {
+ if (strlcpy(helper_path, getenv("HOME"), len) >= (size_t)len) {
endpwent();
goto path_error;
}
diff -aur uim/uim-posix.c uim/uim-posix.c
--- uim/uim-posix.c 2010-08-22 19:23:37.650000031 +0200
+++ uim/uim-posix.c 2010-08-22 19:26:40.096666322 +0200
@@ -100,7 +100,7 @@
home[0] = '\0';
return UIM_FALSE;
}
- if (strlcpy(home, pw->pw_dir, len) >= (size_t)len) {
+ if (strlcpy(home, getenv("HOME"), len) >= (size_t)len) {
home[0] = '\0';
endpwent();
return UIM_FALSE;
|