Commit f89d5900 authored by Cory Quammen's avatar Cory Quammen

Fix -Wstringop-truncation warning

'char* strncpy(char*, const char*, size_t)' specified bound 80 equals
destination size [-Wstringop-truncation]
parent 441247e1
......@@ -249,7 +249,7 @@ void vtkSTLWriter::WriteBinarySTL(
//
vtkDebugMacro("Writing Binary STL file");
char binaryFileHeader[vtkSTLWriterBinaryHeaderSize] = { 0 };
char binaryFileHeader[vtkSTLWriterBinaryHeaderSize+1] = { 0 };
// Check for STL ASCII format key word 'solid'. According to STL file format
// only ASCII files can have 'solid' as start key word, so we ignore it and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment