diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-08 13:17:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-02-08 13:17:28 +0200 |
commit | d88f15a3c9272dddc53b5fcba6ee04697ec5c82b (patch) | |
tree | 485357fe99bf886e4402e5650b6e1b714fe3e15f /common/query/array/driver.cxx | |
parent | a2dee4c3155a5892ea8e09f4d1712e0b60985dea (diff) |
Recode strcpy as memcpy
VC12 deprecated those hard, as in, it is now an error.
Diffstat (limited to 'common/query/array/driver.cxx')
-rw-r--r-- | common/query/array/driver.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 <string> #include <memory> // std::auto_ptr +#include <cstring> // std::memcpy #include <cassert> #include <iostream> @@ -146,7 +147,7 @@ main (int argc, char* argv[]) // #ifdef ODB_CXX11 array<char, 17> a; - strcpy (a.data (), "abc"); + memcpy (a.data (), "abc", 4); // VC++ strcpy deprecation. #ifndef DATABASE_COMMON assert (size (db->query<object> (query::a == a)) == 1); |