Commit 20bf5a9a authored by Mathis Rosenhauer's avatar Mathis Rosenhauer

Testing: silence compiler warning

parent 8a61d624
...@@ -213,7 +213,7 @@ int encode_decode_large(struct test_state *state) ...@@ -213,7 +213,7 @@ int encode_decode_large(struct test_state *state)
return 99; return 99;
} }
if (state->dump) { if (state->dump) {
char fname[1024]; char fname[1024 + 4];
FILE *fp; FILE *fp;
snprintf(fbase, sizeof(fbase), "BPS%02iID%iBS%02iRSI%04iFLG%04i", snprintf(fbase, sizeof(fbase), "BPS%02iID%iBS%02iRSI%04iFLG%04i",
strm->bits_per_sample, strm->bits_per_sample,
...@@ -249,7 +249,7 @@ int encode_decode_large(struct test_state *state) ...@@ -249,7 +249,7 @@ int encode_decode_large(struct test_state *state)
aec_encode_end(strm); aec_encode_end(strm);
if (state->dump) { if (state->dump) {
char fname[1024]; char fname[1024 + 3];
FILE *fp; FILE *fp;
snprintf(fname, sizeof(fname), "%s.rz", fbase); snprintf(fname, sizeof(fname), "%s.rz", fbase);
if ((fp = fopen(fname, "wb")) == NULL) { if ((fp = fopen(fname, "wb")) == NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment