From c3c580a611e0e561731fc99e3c1153a96ec8db2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Tue, 22 Jul 2025 00:24:25 +0200 Subject: [PATCH] Fix ExcelFile warning --- src/reports/ExcelFile.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/reports/ExcelFile.cpp b/src/reports/ExcelFile.cpp index bc162a9..9d6eb12 100644 --- a/src/reports/ExcelFile.cpp +++ b/src/reports/ExcelFile.cpp @@ -54,10 +54,8 @@ namespace platform { } void ExcelFile::setProperties(std::string title) { - char line[title.size() + 1]; - strcpy(line, title.c_str()); lxw_doc_properties properties = { - .title = line, + .title = title.c_str(), .subject = (char*)"Machine learning results", .author = (char*)"Ricardo Montañana Gómez", .manager = (char*)"Dr. J. A. Gámez, Dr. J. M. Puerta",