From 53abb8b96d34560774fcf40aa99d7c629a275443 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Fri, 15 May 2026 07:03:42 +0200 Subject: [PATCH] Use safe string copies in d_save.cpp (#1232) * Use safe string copies in d_save.cpp Seeing sentry crashes here that I suspect involve buffer overflows here. --- src/d/d_save.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/d/d_save.cpp b/src/d/d_save.cpp index 1869f2ceab..fc1cbc4efe 100644 --- a/src/d/d_save.cpp +++ b/src/d/d_save.cpp @@ -30,6 +30,9 @@ #if TARGET_PC #include "dusk/settings.h" #include + +#include "dusk/string.hpp" +#define strcpy dusk::SafeStringCopy #endif static u8 dSv_item_rename(u8 i_itemNo) {