audacity/audacity-1.3.4-CVE-2007-6061.patch

14 lines
617 B
Diff

--- src/AudacityApp.cpp
+++ src/AudacityApp.cpp
@@ -573,8 +573,8 @@
// * The user's .audacity-files directory in their home directory
// * The "share" and "share/doc" directories in their install path
#ifdef __WXGTK__
- defaultTempDir.Printf(wxT("/tmp/audacity%d.%d-%s"),
- AUDACITY_VERSION, AUDACITY_RELEASE, wxGetUserId().c_str());
+ defaultTempDir.Printf(wxT("/%s/audacity%d.%d-%s"),
+ home.c_str(), AUDACITY_VERSION, AUDACITY_RELEASE, wxGetUserId().c_str());
wxString pathVar = wxGetenv(wxT("AUDACITY_PATH"));
if (pathVar != wxT(""))