Cppcheck warning.
--HG-- branch : develop
This commit is contained in:
parent
34a960fcd6
commit
c94afdf174
|
@ -3126,6 +3126,7 @@ void DL_Dxf::writeMText(DL_WriterA& dw,
|
|||
|
||||
// Creare text chunks of 250 characters each:
|
||||
int length = static_cast<int>(data.text.length());
|
||||
// cppcheck-suppress arrayIndexOutOfBounds
|
||||
char chunk[251];
|
||||
int i;
|
||||
for (i=250; i<length; i+=250)
|
||||
|
@ -3141,6 +3142,7 @@ QT_WARNING_PUSH
|
|||
QT_WARNING_DISABLE_MSVC(4996)
|
||||
strncpy(chunk, &data.text.c_str()[i-250], 250);
|
||||
QT_WARNING_POP
|
||||
// cppcheck-suppress arrayIndexOutOfBounds
|
||||
chunk[250]='\0';
|
||||
dw.dxfString(1, chunk);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user