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>2013-12-03 02:10:55 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-12-03 02:10:55 +0400
commita169a109e5636699fd11915d06257cf26105a105 (patch)
tree8998bdc72504fdc48a6a77a77043905ab76852b7 /source/blender/editors
parent93b24b91a99c688e95d460420569010e8b93f4ba (diff)
User Interface: error in own recent commit, replacing loop with memset
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/interface/interface_handlers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index d0b0661c333..f903d0647b3 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -1604,7 +1604,7 @@ void ui_button_text_password_hide(char password_str[UI_MAX_DRAW_STR], uiBut *but
}
else {
/* convert text to hidden test using asterisks (e.g. pass -> ****) */
- int i, len = BLI_strlen_utf8(but->drawstr);
+ const size_t len = BLI_strlen_utf8(but->drawstr);
/* remap cursor positions */
if (but->pos >= 0) {
@@ -1617,7 +1617,7 @@ void ui_button_text_password_hide(char password_str[UI_MAX_DRAW_STR], uiBut *but
BLI_strncpy(password_str, but->drawstr, UI_MAX_DRAW_STR);
memset(but->drawstr, '*', len);
- but->drawstr[i] = '\0';
+ but->drawstr[len] = '\0';
}
}