Replaced all occurrences of sprintf with snprintf to address deprecation warnings
Ensured proper buffer size is passed to snprintf to prevent potential buffer overflows
Ran tests to confirm that the changes do not introduce any new issues or regressions
Remove compile warnings by using snprintf instead of sprintf, likely
warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.
Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
sprintf(error, "%d:%d: Unknown value", line_and_col);
Remove compile warnings by using snprintf instead of sprintf, likely