Re: winemenubuilder: generate new menus in the right directory
11 Jun
2009
11 Jun
'09
10:09 a.m.
Damjan Jovanovic <damjan.jov(a)gmail.com> writes:
@@ -882,7 +882,11 @@ static BOOL write_menu_file(const char *filename)
while (1) { + char *tmpdir = getenv("TMPDIR"); + unsetenv("TMPDIR"); tempfilename = tempnam(xdg_config_dir, "_wine"); + if (tmpdir) + setenv("TMPDIR", tmpdir, 1);
That's ugly. You should use mkstemps() or something like that. -- Alexandre Julliard julliard(a)winehq.org
6119
Age (days ago)
6119
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard