diff options
Diffstat (limited to 'src/configfile.cc')
-rw-r--r-- | src/configfile.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/configfile.cc b/src/configfile.cc index 6b0d14f..8447d9a 100644 --- a/src/configfile.cc +++ b/src/configfile.cc @@ -30,6 +30,7 @@ #include <errno.h> #include <string.h> #include <stdlib.h> +#include <unistd.h> #include <sys/stat.h> #include <sys/types.h> @@ -65,7 +66,7 @@ static std::string configPath() configpath = szPath; } #else - std::string configpath = strdup(getenv("HOME")); + std::string configpath = getenv("HOME"); #endif configpath += SEP; configpath += CONFIGDIRNAME; |