diff --git a/irdb-libs/ir_builders/fill_in_indtargs.cpp b/irdb-libs/ir_builders/fill_in_indtargs.cpp index 800d8bcccce3a7615a882d9834a5b4d81e2de23d..67532fa100c68e5d27cc062bb7836cf1b20aca3c 100644 --- a/irdb-libs/ir_builders/fill_in_indtargs.cpp +++ b/irdb-libs/ir_builders/fill_in_indtargs.cpp @@ -2732,7 +2732,7 @@ V2: // auto table_size = 512U; if(getenv("MAX_JUMP_TABLE_CLAMP_SIZE")){ - auto temp_table_size = atoi(getenv("MAX_JUMP_TABLE_CLAMP_SIZE")); + auto temp_table_size = strtol(getenv("MAX_JUMP_TABLE_CLAMP_SIZE"), nullptr, 10); if(temp_table_size > 0){ table_size = temp_table_size; }