diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-10 13:51:16 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-10 13:51:16 +0000 |
| commit | 4de95f320f8127d2d1d35e594b53ecf53c4c6345 (patch) | |
| tree | 1a6f66134e4b26ea9af1397386dd6b6e8bec7b89 /tests/compare_images.c | |
| parent | aea18173d190f216e2f4228a3dc6fb86dbe724b9 (diff) | |
[trunk] Run richter test suite, correct a regression introduced in r2668
Diffstat (limited to 'tests/compare_images.c')
| -rw-r--r-- | tests/compare_images.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/compare_images.c b/tests/compare_images.c index 2e101246..a9a44ca7 100644 --- a/tests/compare_images.c +++ b/tests/compare_images.c @@ -135,6 +135,7 @@ static char* createMultiComponentsFilename(const char* inFilename, const int ind outFilename = (char*)malloc((posToken + 7) * sizeof(char)); /*6*/ strncpy(outFilename, inFilename, posToken); + outFilename[posToken] = '\0'; strcat(outFilename, separator); sprintf(s, "%i", indexF); strcat(outFilename, s); |
