remove a windows warning about strncpy

This commit is contained in:
Guillaume Damiand 2023-12-27 08:55:39 +01:00
parent 01decbb6a6
commit 6146924680
1 changed files with 2 additions and 0 deletions

View File

@ -1550,9 +1550,11 @@ public:
m_basic_viewer(nullptr),
m_argc(1)
{
#define _CRT_SECURE_NO_WARNINGS
m_argv[0]=new char[strlen(title)+1];
strncpy(m_argv[0], title, strlen(title));
m_argv[1]=nullptr;
#undef _CRT_SECURE_NO_WARNINGS
#if defined(CGAL_TEST_SUITE)
bool cgal_test_suite = true;