From 396c12ee73193f4ac3665ecac2f634fc0b046697 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 16:46:21 +0000 Subject: Fixes for unsafe string handling, variable scoping errors. --- nGenEx/WebBrowser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nGenEx/WebBrowser.cpp') diff --git a/nGenEx/WebBrowser.cpp b/nGenEx/WebBrowser.cpp index a5f5b94..3887f98 100644 --- a/nGenEx/WebBrowser.cpp +++ b/nGenEx/WebBrowser.cpp @@ -37,10 +37,10 @@ WebBrowser::OpenURL(const char* url) char cmdline[256]; if (command.contains("%1")) { - strcpy(cmdline, command.replace("%1", url).data()); + strcpy_s(cmdline, command.replace("%1", url).data()); } else { - strcpy(cmdline, Text(command + " " + url).data()); + strcpy_s(cmdline, Text(command + " " + url).data()); } STARTUPINFO s; -- cgit v1.1