Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuOfficial committed Mar 18, 2024
1 parent e0e19dc commit 010b5b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
os: [windows-latest]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- name: Checkout repository and submodules
Expand Down
2 changes: 1 addition & 1 deletion src/core/AssetIndex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 2 additions & 2 deletions src/core/Logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 010b5b5

Please sign in to comment.