mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-22 04:23:33 +00:00
Forgot null terminator
This commit is contained in:
parent
5d0521eb2b
commit
06bcee7bb6
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ int main(int argc, char **argv) {
|
|||
if (diff_images) {
|
||||
FasTC::Image<> diff = img1.Diff(&img2, diff_multiplier);
|
||||
|
||||
char fname_buf [5 + 16 + 4]; // "diff-" + hash + ".png"
|
||||
char fname_buf [5 + 16 + 4 + 1]; // "diff-" + hash + ".png" + null
|
||||
strncat(fname_buf, "diff-", 5);
|
||||
gen_random(fname_buf + 5, 16);
|
||||
strncat(fname_buf + 5 + 16, ".png", 4);
|
||||
|
|
Loading…
Reference in a new issue