Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
asar-tests: fix -Wformat-truncation warning
/tmp/asar/src/asar-tests/test.cpp: In function 'int main(int, char**)': /tmp/asar/src/asar-tests/test.cpp:1019:44: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size between 381 and 892 [-Wformat-truncation=] 1019 | " \"%s\" \"%s\"", | ^~ 1020 | asar_exe_path, base_path, fname, out_rom_name); | ~~~~~~~~~~~~ /tmp/asar/src/asar-tests/test.cpp:1015:33: note: 'snprintf' output 134 or more bytes (assuming 1156) into a destination of size 1024 1015 | snprintf(cmd, sizeof(cmd), | ~~~~~~~~^~~~~~~~~~~~~~~~~~ 1016 | "\"%s\" -I\"%s\" -Dcli_only=\\$1 -Dcmddefined -D!cmddefined2= --define \" !cmddefined3 = 16,240,224 \"" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1017 | // RPG Hacker: 日本語������ǵ in UTF-8 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1018 | " -Dcmdl_define_utf8=\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e\xf0\x9f\x87\xaf\xf0\x9f\x87\xb5" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1019 | " \"%s\" \"%s\"", | ~~~~~~~~~~~~~~~~~ 1020 | asar_exe_path, base_path, fname, out_rom_name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Loading branch information