diff --git a/source/system/platform.cpp b/source/system/platform.cpp index d8832c68..7373f561 100644 --- a/source/system/platform.cpp +++ b/source/system/platform.cpp @@ -18,15 +18,13 @@ #include #include "../detail/mswin/platform_spec.hpp" #elif defined(NANA_POSIX) - #include - #include #include #include #include #include #include #include - #include + #include static void posix_open_url(const char *url_utf8) { @@ -55,7 +53,7 @@ static void posix_open_url(const char *url_utf8) static const char firefox[] = "firefox"; char name[sizeof firefox]{}; // argv does not like const-literals so make a copy. - strcpy(name, firefox); + std::strcpy(name, firefox); char *argv[3] = {name, const_cast(url_utf8), nullptr}; posix_spawn(&pid, path, NULL, NULL, argv, environ); }