Skip to content

Commit

Permalink
fix1
Browse files Browse the repository at this point in the history
  • Loading branch information
NIANIANKNIA committed Jul 9, 2024
1 parent 5f99df8 commit 0c96744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NIAHttpBOT/src/NIAHttpBOT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0c96744

Please sign in to comment.