summaryrefslogtreecommitdiff
path: root/src/lib/ethumb
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-05-14 18:40:28 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-14 18:41:48 +0200
commit9e2f846830475cbe851630f69af1d4dda2088b5c (patch)
tree4a96a65c8586866fdd9f185e22a512196a0aaa0d /src/lib/ethumb
parent5098e787e8b406663da0b4a1657086782eb35670 (diff)
ethumb: use portable environment lookup.
Diffstat (limited to 'src/lib/ethumb')
-rw-r--r--src/lib/ethumb/ethumb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c
index 20b7b7d5e7..7d21b0cbec 100644
--- a/src/lib/ethumb/ethumb.c
+++ b/src/lib/ethumb/ethumb.c
@@ -259,7 +259,7 @@ ethumb_init(void)
259 if (getuid() == geteuid()) 259 if (getuid() == geteuid())
260#endif 260#endif
261 { 261 {
262 home = getenv("HOME"); 262 home = eina_environment_home_get();
263 snprintf(buf, sizeof(buf), "%s/.thumbnails", home); 263 snprintf(buf, sizeof(buf), "%s/.thumbnails", home);
264 } 264 }
265#if defined(HAVE_GETUID) && defined(HAVE_GETEUID) 265#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
@@ -713,7 +713,7 @@ _ethumb_build_absolute_path(const char *path, char buf[PATH_MAX])
713 if (getuid() == geteuid()) 713 if (getuid() == geteuid())
714#endif 714#endif
715 { 715 {
716 const char *home = getenv("HOME"); 716 const char *home = eina_environment_home_get();
717 if (!home) return NULL; 717 if (!home) return NULL;
718 strncpy(p, home, PATH_MAX - 1); 718 strncpy(p, home, PATH_MAX - 1);
719 p[PATH_MAX - 1] = 0; 719 p[PATH_MAX - 1] = 0;