From 9a4d7403d94ff8fafd2638dbebb20ac506ee0e12 Mon Sep 17 00:00:00 2001 From: Dees Troy Date: Thu, 21 Mar 2019 14:17:28 -0400 Subject: Fix build in 5.1 tree Change-Id: I15f888d58c01de00920dc5c56148d363f4dd79b8 --- partition.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'partition.cpp') diff --git a/partition.cpp b/partition.cpp index c278fa9fe..edf344f5c 100644 --- a/partition.cpp +++ b/partition.cpp @@ -2061,7 +2061,11 @@ bool TWPartition::Wipe_EXTFS(string File_System) { if (NeedPreserveFooter) Length < 0 ? dev_sz += Length : dev_sz -= CRYPT_FOOTER_OFFSET; - string size_str = to_string(dev_sz / 4096); + char dout[16]; + sprintf(dout, "%llu", dev_sz / 4096); + + //string size_str =to_string(dev_sz / 4096); + string size_str = dout; string Command; gui_msg(Msg("formatting_using=Formatting {1} using {2}...")(Display_Name)("mke2fs")); -- cgit v1.2.3