Cleanup: use STRNCPY, SNPRINTF macros

This commit is contained in:
2023-05-09 12:50:37 +10:00
parent 2f9538a8c7
commit 3958ae7241
402 changed files with 1550 additions and 1822 deletions

View File

@@ -2288,8 +2288,7 @@ static PyObject *Matrix_str(MatrixObject *self)
for (col = 0; col < self->col_num; col++) {
maxsize[col] = 0;
for (row = 0; row < self->row_num; row++) {
const int size = BLI_snprintf_rlen(
dummy_buf, sizeof(dummy_buf), "%.4f", MATRIX_ITEM(self, row, col));
const int size = SNPRINTF_RLEN(dummy_buf, "%.4f", MATRIX_ITEM(self, row, col));
maxsize[col] = max_ii(maxsize[col], size);
}
}