Skip to content

Commit

Permalink
Merge pull request #312 from orbea/format-truncation
Browse files Browse the repository at this point in the history
asar-tests: fix -Wformat-truncation warning
  • Loading branch information
randomdude999 authored Mar 2, 2024
2 parents 2afbb2b + afb9d18 commit 73bec0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/asar-tests/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -698,11 +698,11 @@ int main(int argc, char * argv[])
{
char * fname = input_files[testno].file_path;

char out_rom_name[512];
char out_rom_name[256];
snprintf(out_rom_name, sizeof(out_rom_name), "%s%s%s%s", output_directory, (has_path_seperator ? "" : "/"), input_files[testno].file_name, ".sfc");
char stdout_log_name[512];
char stdout_log_name[256];
snprintf(stdout_log_name, sizeof(stdout_log_name), "%s%s%s%s", output_directory, (has_path_seperator ? "" : "/"), input_files[testno].file_name, ".stdout.log");
char stderr_log_name[512];
char stderr_log_name[256];
snprintf(stderr_log_name, sizeof(stderr_log_name), "%s%s%s%s", output_directory, (has_path_seperator ? "" : "/"), input_files[testno].file_name, ".stderr.log");

// Delete files if they already exist, so we don't get leftovers from a previous testrun
Expand Down

0 comments on commit 73bec0f

Please sign in to comment.