1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Description: fix ftbfs with gcc-12.
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012952
Forwarded: https://github.com/andersen-lab/ivar/pull/136
Last-Update: 2022-07-12
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- ivar.orig/src/call_consensus_pileup.h
+++ ivar/src/call_consensus_pileup.h
@@ -5,6 +5,7 @@
#include<vector>
#include<algorithm>
#include<string>
+#include<string.h>
#include<regex>
#include<libgen.h>
--- ivar.orig/src/ivar.cpp
+++ ivar/src/ivar.cpp
@@ -482,9 +482,9 @@
res = common_variants(g_args.prefix, g_args.min_threshold, files, nfiles);
// Free files, nfiles
for (int i = 0; i < nfiles; ++i) {
- free(files[i]);
+ free(files[i]);
}
- delete files;
+ delete[] files;
} else {
res = common_variants(g_args.prefix, g_args.min_threshold, argv + optind, argc - optind);
}
|