Skip to content

Commit

Permalink
fix for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
reginaldford committed Oct 7, 2024
1 parent ca8d57e commit 6917ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/engine/sm_find_source.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sm_object *sm_path_find(sm_string *needle) {
return (sm_object *)sms_false; // Invalid needle
}

char cwd[PATH_MAX];
char cwd[pathconf("/", _PC_PATH_MAX)];
if (getcwd(cwd, sizeof(cwd)) == NULL) {
return (sm_object *)sms_false; // Failed to get the current working directory
}
Expand Down

0 comments on commit 6917ac2

Please sign in to comment.