Damjan Jovanovic <[email protected]> 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 [email protected]
