Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-12-02 15:02:39 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-12-02 15:02:39 +0300
commit1620dcd208a9156d06425b4a700f4c9308570efa (patch)
treee913fb564c409b1b7fd4a59008a518ab693d2a42
parentc5ec3738d84cb9742b24d1e6b1a1e7935facd0ad (diff)
Fix: don't use `BLI_strncpy_utf8` for copying file paths
File paths can be any encoding, so using some UTF-8-specific function is not the right way to go.
-rw-r--r--source/blender/blenkernel/intern/preferences.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/preferences.c b/source/blender/blenkernel/intern/preferences.c
index 41046563f98..7b77261e2ea 100644
--- a/source/blender/blenkernel/intern/preferences.c
+++ b/source/blender/blenkernel/intern/preferences.c
@@ -90,7 +90,7 @@ void BKE_preferences_asset_library_name_set(UserDef *userdef,
* created as directory if necessary later. */
void BKE_preferences_asset_library_path_set(bUserAssetLibrary *library, const char *path)
{
- BLI_strncpy_utf8(library->path, path, sizeof(library->path));
+ BLI_strncpy(library->path, path, sizeof(library->path));
if (BLI_is_file(library->path)) {
BLI_path_parent_dir(library->path);
}