summaryrefslogtreecommitdiffhomepage
path: root/loader
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-28 22:10:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-28 22:10:27 +0200
commit280b4c235fe11dd629f882f0fb5054384fcee1d7 (patch)
treee89735003b52b04e3c17a3ad5532b36e055cdda7 /loader
parent1b84fc144f77c4ebef6fdc0a476410420e0a95b3 (diff)
more work
Diffstat (limited to 'loader')
-rw-r--r--loader/loader-impl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/loader/loader-impl.cpp b/loader/loader-impl.cpp
index a6d05e32..8c478161 100644
--- a/loader/loader-impl.cpp
+++ b/loader/loader-impl.cpp
@@ -100,6 +100,7 @@ Trade::ImageData2D loader_impl::tile_texture(StringView filename_)
}
}
const auto path = Utility::Path::currentDirectory();
+ filename[len] = '\0';
fm_abort("can't open tile image '%s' (cwd '%s')", filename, path ? path->data() : "(null)");
}