Open francicco opened 1 year ago
I'm getting the exact same error!
@francicco @andrewSharo I have nothing to do with this package. But the error you're getting appears to have resulted from a newer compiler being better able to detect potential errors.
THE FOLLOWING MIGHT NOT BE CORRECT, AND IS OFFERED ONLY AS A SUGGESTION FOR YOU TO CONSIDER. Having looked at neither the source code nor the makefile, I'd suggest you either need to (a) modify mafToFastaStitcherAPI.c so that fmtName is big enough to hold the string that might be generated (I guess you would need a 25-byte character array), or (b) modify the makefile so the compiler will ignore that type of presumed error.
See here for more info: https://stackoverflow.com/questions/51697753/how-to-suppress-sprintf-warning-directive-writing-between-1-and-11-bytes-into
Thanks @rsharris !
I can confirm that changing line 626 of mafToFastaStitcherAPI.c from
char fmtName[10] = "\0", fmtStart[32] = "\0", fmtLen[32] = "\0", fmtSource[32] = "\0", *fmtLine = NULL;
to
char fmtName[32] = "\0", fmtStart[32] = "\0", fmtLen[32] = "\0", fmtSource[32] = "\0", *fmtLine = NULL;
allowed the program to compile. To clarify, just changing 10 to 32. I have not yet checked if it actually runs.
Best, Andrew
Hi,
I'm having a problem compiling mafToFastaStitcher.
I'm getting this error
Can you help? Thanks a lot Francesco