Update obiapat.c by removing dependancy to asprintf by using snprintf

This commit is contained in:
2023-02-17 11:28:14 +01:00
parent 8458c0cd8b
commit 9cf9d4d504

View File

@ -25,7 +25,8 @@ void* ecoError(int error,
int *errno,
char **error_msg)
{
asprintf(error_msg,
*error_msg = malloc(1001);
snprintf(*error_msg,1000,
"Error %d in file %s line %d : %s",
error,
filename,