From 6b7090ee5f0e1f154a8ae52d7e7119d4082892cb Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 5 Mar 2024 13:55:35 +0100 Subject: c --- loader/atlas.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/atlas.cpp b/loader/atlas.cpp index b283fa87..63025122 100644 --- a/loader/atlas.cpp +++ b/loader/atlas.cpp @@ -22,9 +22,9 @@ StringView loader_::make_atlas_path(char(&buf)[fm_FILENAME_MAX], StringView dir, const auto dirsiz = dir.size(), namesiz = name.size(), extsiz = ext.size(), len = dirsiz + namesiz + extsiz; fm_soft_assert(len < fm_FILENAME_MAX); - std::memcpy(&buf[0], dir.data(), dirsiz ); + std::memcpy(&buf[0], dir.data(), dirsiz); std::memcpy(&buf[dirsiz], name.data(), namesiz); - std::memcpy(&buf[dirsiz + namesiz], ext.data(), extsiz ); + std::memcpy(&buf[dirsiz + namesiz], ext.data(), extsiz); buf[len] = '\0'; return StringView{buf, len, StringViewFlag::NullTerminated}; } -- cgit v1.2.3