[Bf-blender-cvs] [db7bb5bdd25] master: Cleanup: fix compiler warning

Brecht Van Lommel noreply at git.blender.org
Wed Feb 26 11:54:49 CET 2020


Commit: db7bb5bdd25ccbafbe32c097dc9750190e362f15
Author: Brecht Van Lommel
Date:   Wed Feb 26 11:51:34 2020 +0100
Branches: master
https://developer.blender.org/rBdb7bb5bdd25ccbafbe32c097dc9750190e362f15

Cleanup: fix compiler warning

===================================================================

M	source/blender/editors/space_file/fsmenu.c

===================================================================

diff --git a/source/blender/editors/space_file/fsmenu.c b/source/blender/editors/space_file/fsmenu.c
index daa3495b1c4..fb7822fe9ff 100644
--- a/source/blender/editors/space_file/fsmenu.c
+++ b/source/blender/editors/space_file/fsmenu.c
@@ -198,7 +198,7 @@ static void fsmenu_xdg_insert_entry(GHash *xdg_map,
     BLI_path_join(dirpath, sizeof(dirpath), home, default_path, NULL);
   }
   else {
-    BLI_snprintf(dirpath, sizeof(dirpath), xdg_path);
+    STRNCPY(dirpath, xdg_path);
   }
 
   fsmenu_insert_entry(



More information about the Bf-blender-cvs mailing list