diff options
Diffstat (limited to '0001-fmt-does-not-have-sprintf.patch')
-rw-r--r-- | 0001-fmt-does-not-have-sprintf.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/0001-fmt-does-not-have-sprintf.patch b/0001-fmt-does-not-have-sprintf.patch new file mode 100644 index 000000000000..244894f4de2f --- /dev/null +++ b/0001-fmt-does-not-have-sprintf.patch @@ -0,0 +1,35 @@ +From b239de6c5d498d69679ce204717defffb9f998e4 Mon Sep 17 00:00:00 2001 +From: BlackEagle <ike.devolder@gmail.com> +Date: Sun, 19 Mar 2017 22:19:43 +0100 +Subject: [PATCH] fmt does not have sprintf + +Signed-off-by: BlackEagle <ike.devolder@gmail.com> +--- + xbmc/utils/StringUtils.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/xbmc/utils/StringUtils.h b/xbmc/utils/StringUtils.h +index 0c1d98c2be..8bebcc654f 100644 +--- a/xbmc/utils/StringUtils.h ++++ b/xbmc/utils/StringUtils.h +@@ -61,7 +61,7 @@ public: + { + auto result = fmt::format(fmt, std::forward<Args>(args)...); + if (result == fmt) +- result = fmt::sprintf(fmt, std::forward<Args>(args)...); ++ result = fmt::format(fmt, std::forward<Args>(args)...); + + return result; + } +@@ -70,7 +70,7 @@ public: + { + auto result = fmt::format(fmt, std::forward<Args>(args)...); + if (result == fmt) +- result = fmt::sprintf(fmt, std::forward<Args>(args)...); ++ result = fmt::format(fmt, std::forward<Args>(args)...); + + return result; + } +-- +2.12.0 + |