From 6864ffc32ec04b3fa88649b261330f0e56b68f72 Mon Sep 17 00:00:00 2001 From: Adam Michalski Date: Wed, 3 Jul 2024 16:53:09 +0200 Subject: [PATCH] Fix SVACE issue. Reference WGID #220706. Change-Id: I9c2f5f7a1811a6c4690d0eef4a111f4dc2cdc9b9 --- src/upgrade-apply/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upgrade-apply/main.c b/src/upgrade-apply/main.c index c15c030..5af3f4a 100644 --- a/src/upgrade-apply/main.c +++ b/src/upgrade-apply/main.c @@ -446,7 +446,7 @@ int get_block_count_from_progress_file(const char* progress_info_file, const cha fprintf(stderr, "%s file is not compatible - value missing\n", progress_info_file); ret = -1; } else { - *block_count = (uint64_t) atoi(read_word); + *block_count = strtoull(read_word, NULL, 10); fprintf(stderr, "Block count for %s: %"PRIu64"\n", archive_file, *block_count); ret = 0; } -- 2.34.1