From 610e4254ed324dbf1f1351b054f532a513c77b1c Mon Sep 17 00:00:00 2001 From: Albert Cahalan Date: Wed, 29 Dec 2004 05:21:39 +0000 Subject: [PATCH] putenv w/ stack variable is wrong; must leak instead --- src/tuxpaint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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