From d88f15a3c9272dddc53b5fcba6ee04697ec5c82b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 8 Feb 2015 13:17:28 +0200 Subject: Recode strcpy as memcpy VC12 deprecated those hard, as in, it is now an error. --- common/query/array/driver.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/query/array/driver.cxx b/common/query/array/driver.cxx index b47fc93..dcbe095 100644 --- a/common/query/array/driver.cxx +++ b/common/query/array/driver.cxx @@ -7,6 +7,7 @@ #include #include // std::auto_ptr +#include // std::memcpy #include #include @@ -146,7 +147,7 @@ main (int argc, char* argv[]) // #ifdef ODB_CXX11 array a; - strcpy (a.data (), "abc"); + memcpy (a.data (), "abc", 4); // VC++ strcpy deprecation. #ifndef DATABASE_COMMON assert (size (db->query (query::a == a)) == 1); -- cgit v1.1