Don't require /tmp/rdoc_tmp to exist

This commit is contained in:
baldurk
2019-05-25 16:36:18 +01:00
parent dc7ef30a60
commit e353d23364
+1 -1
View File
@@ -53,5 +53,5 @@ std::string GetEnvVar(const char *var)
void tmpnam_via_mkstemp(char (&buf)[MAX_PATH])
{
snprintf(buf, MAX_PATH - 1, "/tmp/rdoc_tmp/%x", rand());
snprintf(buf, MAX_PATH - 1, "/tmp/rdoc_tmp_%x", rand());
}