Only write files to the temp dir

This commit is contained in:
Eric Severance 2025-01-08 09:16:19 -08:00
parent e2afd5f2ba
commit cf0e59d50d
No known key found for this signature in database
GPG Key ID: F19AABB5E1EA1B5F

View File

@ -82,8 +82,8 @@ int LLVMFuzzerInitialize(int *argc, char ***argv)
std::thread t([program = *argv[0]]() {
char nodeIdStr[12];
strcpy(nodeIdStr, std::to_string(nodeId).c_str());
int argc = 3;
char *argv[] = {program, "-h", nodeIdStr, nullptr};
int argc = 5;
char *argv[] = {program, "-d", "/tmp/meshtastic", "-h", nodeIdStr, nullptr};
portduino_main(argc, argv);
});
t.detach();