]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - Plugson/src/Core/ventoy_json.c
Fix the VentoyPlugson issue that default_file value is wrong for more than 10 theme...
[Ventoy.git] / Plugson / src / Core / ventoy_json.c
index 2403e652cb2214e3bbcb54a9dd8768be1456d58e..346a9d9ddb14bdf3e8f8825d8346fc23e1780b79 100644 (file)
@@ -425,7 +425,7 @@ int vtoy_json_parse(VTOY_JSON *pstJson, const char *szJsonData)
     char *pcNewBuf = NULL;\r
     const char *pcEnd = NULL;\r
 \r
-    uiMemSize = strlen(szJsonData) + 1;\r
+    uiMemSize = (uint32_t)strlen(szJsonData) + 1;\r
     pcNewBuf = (char *)malloc(uiMemSize);\r
     if (NULL == pcNewBuf)\r
     {\r