Warning fixes for Clang-3.6
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@15016 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -317,8 +317,9 @@ namespace osgDB
|
||||
}
|
||||
|
||||
// Allocate memory for use with osg::Image
|
||||
char* allocated_out = new char[stream_out.tellp()];
|
||||
memcpy(allocated_out, stream_out.str().c_str(), stream_out.tellp());
|
||||
const std::string str = stream_out.str();
|
||||
char* allocated_out = new char[str.size()];
|
||||
memcpy(allocated_out, str.c_str(), str.size());
|
||||
|
||||
return allocated_out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user