mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Update obiapat.c by removing dependancy to asprintf by using snprintf
This commit is contained in:
@ -25,7 +25,8 @@ void* ecoError(int error,
|
|||||||
int *errno,
|
int *errno,
|
||||||
char **error_msg)
|
char **error_msg)
|
||||||
{
|
{
|
||||||
asprintf(error_msg,
|
*error_msg = malloc(1001);
|
||||||
|
snprintf(*error_msg,1000,
|
||||||
"Error %d in file %s line %d : %s",
|
"Error %d in file %s line %d : %s",
|
||||||
error,
|
error,
|
||||||
filename,
|
filename,
|
||||||
|
Reference in New Issue
Block a user