Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch-id: replace
atoi()
with strtol_i2()
The change is made to improve the error-handling capabilities during the conversion of string representations to integers. The `strtol_i2(` function offers a more robust mechanism for converting strings to integers by providing enhanced error detection. Unlike `atoi(`, `strtol_i2(` allows the code to differentiate between a valid conversion and an invalid one, offering better resilience against potential issues such as reading hunk header of a corrupted patch. Signed-off-by: Mohit Marathe <mohitmarathe@proton.me>
- Loading branch information