From 7093b5ad3dd48b35b025c3106d1e29759cc13c34 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 24 Aug 2022 21:45:35 +0200 Subject: [PATCH] Json: Remove redundant width specifier to silence compiler warning --- src/ruc/json/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ruc/json/parser.cpp b/src/ruc/json/parser.cpp index 83dc2da..45a2a2c 100644 --- a/src/ruc/json/parser.cpp +++ b/src/ruc/json/parser.cpp @@ -266,7 +266,7 @@ Value Parser::consumeString() break; default: char buffer[7]; - sprintf(buffer, "\\u%0.4X", character); + sprintf(buffer, "\\u%.4X", character); return std::string(buffer); break; }