Skip to content

Commit

Permalink
Fix building
Browse files Browse the repository at this point in the history
  • Loading branch information
notdevcody committed May 6, 2024
1 parent 266ccd6 commit ab0fd6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/FileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ char *bc_file_minecraft_directory() {
struct passwd *pw = getpwuid(getuid());

int size = strlen(pw->pw_dir) + strlen("/.minecraft/") + 1;
mcdir = malloc(size);
mcdir = (char*)malloc(size);
snprintf(mcdir, size, "%s/.minecraft/", pw->pw_dir);
#elif _WIN32
char *env = getenv("APPDATA");
Expand Down
4 changes: 2 additions & 2 deletions src/core/Logger.cpp
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 = NULL;
va_list args2 = NULL;
va_list args = {};
va_list args2 = {};

va_start(args, format);
va_copy(args2, args);
Expand Down

0 comments on commit ab0fd6c

Please sign in to comment.