From 8cb3b49e51469b9689bfa44b85349149e17699dc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 10 Sep 2022 16:51:15 +1000 Subject: Cleanup: replace strncpy with BLI_strncpy Also replace strncpy+strcat with BLI_string_join --- source/blender/editors/space_file/space_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_file/space_file.c') diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c index b5cad0f6ff8..bba0c27bb4d 100644 --- a/source/blender/editors/space_file/space_file.c +++ b/source/blender/editors/space_file/space_file.c @@ -992,7 +992,7 @@ void ED_spacetype_file(void) ARegionType *art; st->spaceid = SPACE_FILE; - strncpy(st->name, "File", BKE_ST_MAXNAME); + STRNCPY(st->name, "File"); st->create = file_create; st->free = file_free; -- cgit v1.2.3