I'm having this error, please help me fix this.
Thank you all
mcscan.cc:140:26: warning: ‘.collinearity’ directive writing 13 bytes into a region of size between 1 and 200 [-Wformat-overflow=]
140 | sprintf(align_fn, "%s.collinearity", prefix_fn);
| ^~~~~
mcscan.cc:140:12: note: ‘sprintf’ output between 14 and 213 bytes into a destination of size 200
140 | sprintf(align_fn, "%s.collinearity", prefix_fn);
| ~^~~~~~~~~~
g++ struct.cc mcscan_h.cc read_homology.cc out_homology.cc dagchainer.cc msa.cc permutation.cc -o MCScanX_h
mcscan_h.cc: In function ‘int main(int, char**)’:
mcscan_h.cc:156:26: warning: ‘.collinearity’ directive writing 13 bytes into a region of size between 1 and 200 [-Wformat-overflow=]
156 | sprintf(align_fn, "%s.collinearity", prefix_fn);
| ^~~~~
mcscan_h.cc:156:12: note: ‘sprintf’ output between 14 and 213 bytes into a destination of size 200
156 | sprintf(align_fn, "%s.collinearity", prefix_fn);
| ~^~~~~~~~~~
I'm having this error, please help me fix this. Thank you all
mcscan.cc:140:26: warning: ‘.collinearity’ directive writing 13 bytes into a region of size between 1 and 200 [-Wformat-overflow=] 140 | sprintf(align_fn, "%s.collinearity", prefix_fn); | ^
~~~~ mcscan.cc:140:12: note: ‘sprintf’ output between 14 and 213 bytes into a destination of size 200 140 | sprintf(align_fn, "%s.collinearity", prefix_fn); |~^~~~~~~~~~ g++ struct.cc mcscan_h.cc read_homology.cc out_homology.cc dagchainer.cc msa.cc permutation.cc -o MCScanX_h mcscan_h.cc: In function ‘int main(int, char**)’: mcscan_h.cc:156:26: warning: ‘.collinearity’ directive writing 13 bytes into a region of size between 1 and 200 [-Wformat-overflow=] 156 | sprintf(align_fn, "%s.collinearity", prefix_fn); | ^~~~~ mcscan_h.cc:156:12: note: ‘sprintf’ output between 14 and 213 bytes into a destination of size 200 156 | sprintf(align_fn, "%s.collinearity", prefix_fn); |~^~~~~~~~~~