summaryrefslogtreecommitdiffhomepage
path: root/loader/loader-impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'loader/loader-impl.cpp')
-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)");
}