Skip to content

Commit 4a1b5a4

Browse files
committed
small fixes
1 parent 573ac29 commit 4a1b5a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/runtime/execute.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ enum CMD_STAT {
4343
SIGNAL_ERR = 4
4444
};
4545

46-
// Override CopyCharsToDescriptor in tools.h
46+
// Override CopyCharsToDescriptor in tools.h, pass string directly
4747
void CopyCharsToDescriptor(const Descriptor &value, const char *rawValue){
4848
CopyCharsToDescriptor(value, rawValue, std::strlen(rawValue));
4949
}
@@ -71,7 +71,7 @@ int TerminationCheck(int status, const Descriptor *cmdstat,
7171
terminator.Crash("Execution error with system status code: %d", status);
7272
} else {
7373
CheckAndStoreIntToDescriptor(cmdstat, EXECL_ERR, terminator);
74-
CopyCharsToDescriptor(*cmdmsg, "Execution error", 16);
74+
CopyCharsToDescriptor(*cmdmsg, "Execution error");
7575
}
7676
}
7777
#ifdef _WIN32

0 commit comments

Comments
 (0)