From 0c96744b2f03d9146c7a301fc9986a2dbcbc1a78 Mon Sep 17 00:00:00 2001 From: NIANIANKNIA Date: Wed, 10 Jul 2024 00:08:50 +0800 Subject: [PATCH] fix1 --- NIAHttpBOT/src/NIAHttpBOT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NIAHttpBOT/src/NIAHttpBOT.cpp b/NIAHttpBOT/src/NIAHttpBOT.cpp index e8d5bb6..852925b 100644 --- a/NIAHttpBOT/src/NIAHttpBOT.cpp +++ b/NIAHttpBOT/src/NIAHttpBOT.cpp @@ -348,7 +348,7 @@ signed int main(signed int argc, char** argv) { std::system(("start cmd /k " + std::string(programName)).c_str()); #else if (fork() == 0) { - execl(programName, programName, (char*)NULL); + execl(programName.c_str(), programName.c_str(), (char*)NULL); } #endif exit(0);