diff --git a/src/tuxpaint.c b/src/tuxpaint.c index fec382a83..a9bdd90d4 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -701,7 +701,7 @@ static void set_current_language(void) if (loc) { snprintf(str, sizeof(str), "LANGUAGE=%s", loc); - putenv(str); + putenv(strdup(str)); } } #endif