Ubuntu 18.04 Upgrade #3

Merged
RoshanSyed merged 143 commits from github/fork/PBSA/master into master 2019-09-03 16:20:50 +00:00
Showing only changes of commit 3c6d7d9fe3 - Show all commits

View file

@ -23,7 +23,6 @@ namespace fc {
if( str.size() <= sizeof(data) ) if( str.size() <= sizeof(data) )
memcpy( (char*)&data, str.c_str(), str.size() ); memcpy( (char*)&data, str.c_str(), str.size() );
else { else {
wlog( "truncating string '${str}'", ("str",str) );
memcpy( (char*)&data, str.c_str(), sizeof(data) ); memcpy( (char*)&data, str.c_str(), sizeof(data) );
} }
} }
@ -32,7 +31,6 @@ namespace fc {
if( l <= sizeof(data) ) if( l <= sizeof(data) )
memcpy( (char*)&data, str, l ); memcpy( (char*)&data, str, l );
else { else {
wlog( "truncating string '${str}'", ("str",str) );
memcpy( (char*)&data, str, sizeof(data) ); memcpy( (char*)&data, str, sizeof(data) );
} }
} }
@ -63,7 +61,6 @@ namespace fc {
memcpy( (char*)&data, str.c_str(), str.size() ); memcpy( (char*)&data, str.c_str(), str.size() );
} }
else { else {
wlog( "truncating string '${str}'", ("str",str) );
memcpy( (char*)&data, str.c_str(), sizeof(data) ); memcpy( (char*)&data, str.c_str(), sizeof(data) );
} }
return *this; return *this;