From 23f4c5bb1b2ef451fc16e38ba8af1233693aa5ff Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Wed, 29 Apr 2020 21:40:08 +0200 Subject: [PATCH] Fix branding in metadata for PNG screenshots --- src/hardware/hardware.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hardware/hardware.cpp b/src/hardware/hardware.cpp index ae0990bf..b5f7e28f 100644 --- a/src/hardware/hardware.cpp +++ b/src/hardware/hardware.cpp @@ -369,10 +369,10 @@ void CAPTURE_AddImage(Bitu width, Bitu height, Bitu bpp, Bitu pitch, Bitu flags, #ifdef PNG_TEXT_SUPPORTED int fields = 1; png_text text[1] = {}; - const char* text_s = "DOSBox " VERSION; - size_t strl = strlen(text_s); - char* ptext_s = new char[strl + 1]; - strcpy(ptext_s, text_s); + const char* text_s = "dosbox-staging " VERSION; + const size_t text_len = strlen(text_s); + char* ptext_s = new char[text_len + 1]; + strncpy(ptext_s, text_s, text_len); char software[9] = { 'S','o','f','t','w','a','r','e',0}; text[0].compression = PNG_TEXT_COMPRESSION_NONE; text[0].key = software;