Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
scan build warning of signed/unsigned integer comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Aug 8, 2023
1 parent 246d163 commit dffb58d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/fs/m_fs_path.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ M_fs_error_t M_fs_path_readlink_int(char **out, const char *path, M_bool last, M
return M_fs_error_from_syserr(errsv);
} else {
/* Appease coverity even though it is null termed on allocation */
temp[M_MIN(read_len, path_max-1)] = '\0';
temp[M_MIN((size_t)read_len, path_max-1)] = '\0';
}
/* this way out isn't massive if the path is small. */
*out = M_strdup(temp);
Expand Down

0 comments on commit dffb58d

Please sign in to comment.