diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 2fe9f8714..53ea12665 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -23961,7 +23961,7 @@ static void setup_config(char *argv[]) #ifdef WIN32 picturesdir = GetUserImageDir(); #elif __APPLE__ - picturesdir = apple_picturesPath(); + picturesdir = strdup(apple_picturesPath()); #else picturesdir = get_xdg_user_dir("PICTURES", "Pictures"); #endif