From 91140dcb42f441f8883b204fdfea367c133def9e Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 23 May 2015 18:49:59 +0200 Subject: Bugfixing --- engine.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'engine.cpp') diff --git a/engine.cpp b/engine.cpp index 608d641..e99576c 100644 --- a/engine.cpp +++ b/engine.cpp @@ -46,7 +46,7 @@ int main(int argc,char **argv){ row.items[0].rh_int32=UINT_MAX; row.items[1].rh_uint32=UINT_MAX; row.items[2].rh_bytes=new unsigned char[10]; - strcpy((char*)row.items[2].rh_bytes,"hallo daar"); + memcpy((char*)row.items[2].rh_bytes,"hallo daar",10); InsertQuery iqu(move(row)); iqu.tablename="hoi"; @@ -56,12 +56,20 @@ int main(int argc,char **argv){ cout<<"Insert, Result: "<rows.size()<<" row"<<(hoitb->rows.size()==1?"":"s")<<'.'<