diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 38183cd..1ea1245 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: - os: [windows-latest] + os: [ubuntu-latest, macos-latest, windows-latest] steps: - name: Checkout repository and submodules diff --git a/src/core/AssetIndex.c b/src/core/AssetIndex.c index 076dc1e..e4f2e5e 100644 --- a/src/core/AssetIndex.c +++ b/src/core/AssetIndex.c @@ -78,7 +78,7 @@ bc_assetindex *bc_assetindex_load(bc_version_assetIndexData *data) { json = json_object_from_file(jsonLoc); const char *json_str = json_object_to_json_string(json); - assetsData = malloc(sizeof(char) * strlen(json_str)); + assetsData = malloc(sizeof(char) * strlen(json_str) + 1); strcpy(assetsData, json_str); } diff --git a/src/core/Logger.c b/src/core/Logger.c index 0787831..b9336e4 100644 --- a/src/core/Logger.c +++ b/src/core/Logger.c @@ -15,8 +15,8 @@ void bc_log(const char *format, ...) { FILE *file = NULL; file = fopen("betacraft.log", "a"); - va_list args = {}; - va_list args2 = {}; + va_list args; + va_list args2; va_start(args, format); va_copy(args2, args);