Skip to content

Commit

Permalink
Update Modelica/Resources/C-Sources/ModelicaInternal.c
Browse files Browse the repository at this point in the history
Co-authored-by: Hans Olsson <[email protected]>
  • Loading branch information
beutlich and HansOlsson authored Nov 18, 2024
1 parent 39b7538 commit 68ba789
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modelica/Resources/C-Sources/ModelicaInternal.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ static ModelicaFileType Internal_stat(_In_z_ const char* name) {
/* _stat accepts both "a:\dir" and "a:\dir\" */
#else
/* _stat requires "a:\dir" instead of "a:\dir\" */
/* required for VS 2013 and earlier */
else if (NULL != firstSlash && len > 1 &&
('/' == name[len - 1] || '\\' == name[len - 1])) {
char* nameTmp = (char*)malloc(len*(sizeof(char)));
Expand Down

0 comments on commit 68ba789

Please sign in to comment.