updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / uim-alpha / home.patch
blob5d171529d9fd50f13a33bbeba92f5c8da16d0179
1 diff -aur uim/uim-helper.c uim/uim-helper.c
2 --- uim/uim-helper.c 2010-08-22 19:23:37.646666698 +0200
3 +++ uim/uim-helper.c 2010-08-22 19:26:57.676666781 +0200
4 @@ -178,7 +178,7 @@
5 goto path_error;
8 - if (strlcpy(helper_path, pw->pw_dir, len) >= (size_t)len) {
9 + if (strlcpy(helper_path, getenv("HOME"), len) >= (size_t)len) {
10 endpwent();
11 goto path_error;
13 diff -aur uim/uim-posix.c uim/uim-posix.c
14 --- uim/uim-posix.c 2010-08-22 19:23:37.650000031 +0200
15 +++ uim/uim-posix.c 2010-08-22 19:26:40.096666322 +0200
16 @@ -100,7 +100,7 @@
17 home[0] = '\0';
18 return UIM_FALSE;
20 - if (strlcpy(home, pw->pw_dir, len) >= (size_t)len) {
21 + if (strlcpy(home, getenv("HOME"), len) >= (size_t)len) {
22 home[0] = '\0';
23 endpwent();
24 return UIM_FALSE;