enforce string limits (reported by pedantic checking tools & some developers).
mostly replace strcpy with BLI_strncpy and multiple strcat's with a BLI_snprintf(). also fix possible crash if CWD isnt available.
This commit is contained in:
@@ -752,7 +752,7 @@ static void default_get_tarmat (bConstraint *con, bConstraintOb *cob, bConstrain
|
||||
bConstraintTarget *ctn = ct->next; \
|
||||
if (nocopy == 0) { \
|
||||
datatar= ct->tar; \
|
||||
strcpy(datasubtarget, ct->subtarget); \
|
||||
BLI_strncpy(datasubtarget, ct->subtarget, sizeof(datasubtarget)); \
|
||||
con->tarspace= (char)ct->space; \
|
||||
} \
|
||||
\
|
||||
|
||||
Reference in New Issue
Block a user