Cleanup: use string copy & printf macros

This commit is contained in:
2023-05-13 17:34:21 +10:00
parent 302137b14b
commit b1a426eac7
10 changed files with 29 additions and 33 deletions

View File

@@ -803,7 +803,7 @@ static void bpy_module_delay_init(PyObject *bpy_proxy)
const char *filepath_rel = PyUnicode_AsUTF8(filepath_obj); /* can be relative */
char filepath_abs[1024];
BLI_strncpy(filepath_abs, filepath_rel, sizeof(filepath_abs));
STRNCPY(filepath_abs, filepath_rel);
BLI_path_abs_from_cwd(filepath_abs, sizeof(filepath_abs));
Py_DECREF(filepath_obj);