summaryrefslogtreecommitdiffstats
path: root/core/android.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/android.cpp')
-rw-r--r--core/android.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/android.cpp b/core/android.cpp
index 5234f35a9..277c4492e 100644
--- a/core/android.cpp
+++ b/core/android.cpp
@@ -2,6 +2,7 @@
/* implements Android specific functions */
#include "dive.h"
#include "display.h"
+#include "qthelper.h"
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
@@ -52,7 +53,7 @@ static const char *system_default_path_append(const char *append)
if (append)
path += QString("/%1").arg(append);
- return strdup(qPrintable(path));
+ return copy_qstring(path);
}
const char *system_default_directory(void)