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:
authorCampbell Barton <ideasman42@gmail.com>2011-09-26 20:53:04 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-09-26 20:53:04 +0400
commitfbdfdfefd814128520198c033866cc50298f1758 (patch)
treedb1905986bf496190a77a6710da49fa36214d665 /source/blender/editors/interface/interface_style.c
parent8a423f59ea123948383f024695bf058213169d82 (diff)
use BLI_snprintf rather than sprintf for interface functions
Diffstat (limited to 'source/blender/editors/interface/interface_style.c')
-rw-r--r--source/blender/editors/interface/interface_style.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_style.c b/source/blender/editors/interface/interface_style.c
index 2a183e3d994..3009d4fea09 100644
--- a/source/blender/editors/interface/interface_style.c
+++ b/source/blender/editors/interface/interface_style.c
@@ -315,7 +315,7 @@ void uiStyleInit(void)
font= MEM_callocN(sizeof(uiFont), "ui font");
BLI_addtail(&U.uifonts, font);
- strcpy(font->filename, "default");
+ BLI_strncpy(font->filename, "default", sizeof(font->filename));
font->uifont_id= UIFONT_DEFAULT;
}