aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwsnipex <wsnipex@a1.net>2019-01-21 13:29:07 +0100
committerwsnipex <wsnipex@a1.net>2019-01-21 13:29:07 +0100
commit64660ba0709a9d4bda8ffa8641cfe1e46716901f (patch)
tree1d694180e1dc0993d0af700a180e4a9bec531f48
parentfb81990d237648e023090862ee665a41e439db5d (diff)
[StringUtils] fix crash on addon install when using fmt 5.3
-rw-r--r--xbmc/utils/StringUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/utils/StringUtils.cpp b/xbmc/utils/StringUtils.cpp
index c08b94e3e1..79fc0a75c8 100644
--- a/xbmc/utils/StringUtils.cpp
+++ b/xbmc/utils/StringUtils.cpp
@@ -1265,7 +1265,7 @@ std::string StringUtils::FormatFileSize(uint64_t bytes)
value /= 1024.0;
}
unsigned int decimals = value < 9.995 ? 2 : (value < 99.95 ? 1 : 0);
- auto frmt = "%.0" + Format("%u", decimals) + "f%s";
+ auto frmt = "%." + Format("%u", decimals) + "f%s";
return Format(frmt.c_str(), value, units[i].c_str());
}