diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-08 07:46:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-08 07:46:06 +0400 |
commit | b243b4fe4053341b26df698f41c87b80cae8f484 (patch) | |
tree | 7cb59a46b1d5c6c2ec28b8ed292ca9bbca3f7890 /source/blender/editors/util | |
parent | e781ea79b2616014b2faff3d74a2efaa844a0f44 (diff) |
Fix for inorrect use of BLI_utf8_invalid_strip, add assert to prevent it happening again.
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r-- | source/blender/editors/util/numinput.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/util/numinput.c b/source/blender/editors/util/numinput.c index 8b98d00b282..78499dac55b 100644 --- a/source/blender/editors/util/numinput.c +++ b/source/blender/editors/util/numinput.c @@ -131,7 +131,7 @@ void outputNumInput(NumInput *n, char *str) BLI_snprintf(&str[j * ln], ln, "%sNONE%s", cur, cur); } /* We might have cut some multi-bytes utf8 chars (e.g. trailing '°' of degrees values can become only 'A')... */ - BLI_utf8_invalid_strip(&str[j * ln], ln); + BLI_utf8_invalid_strip(&str[j * ln], strlen(&str[j * ln])); } } |