From 14382801beb87366b0da043019c9b5e82ba1ee33 Mon Sep 17 00:00:00 2001 From: Thomas Krannich <krannich479@googlemail.com> Date: Thu, 17 Mar 2022 11:02:54 +0100 Subject: [PATCH] fix atoi, as it's not part of gcc --- src/popins2_merge_and_set_mate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/popins2_merge_and_set_mate.h b/src/popins2_merge_and_set_mate.h index a11587f..0af731a 100644 --- a/src/popins2_merge_and_set_mate.h +++ b/src/popins2_merge_and_set_mate.h @@ -1,5 +1,6 @@ #include <sstream> #include <cerrno> +#include <stdlib.h> #include <seqan/file.h> #include <seqan/sequence.h> @@ -106,7 +107,7 @@ inline CharString iterSuffix(const CharString &PG_ID, const std::unordered_set<c CharString inf = ".mH"; append(ret, inf); char buffer[32]; - itoa(i, buffer, 10); // unsigned, char*, numerical base + snprintf(buffer, sizeof(buffer), "%d", i); // unsigned, char*, numerical base CharString suf = buffer; append(ret, suf); -- GitLab