diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-31 08:28:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-31 08:28:49 +0400 |
commit | fd2907a0b656f06c90243a5956df44d47d4bddd6 (patch) | |
tree | 1795fc58c0aea430d1d0ffdb7c9a7db6cf05fb5a /source/blender/blenlib/intern/string_utf8.c | |
parent | ac86beb0e569075e2bd6e2da914bda2831b06c18 (diff) |
add assert if zero is passed to string copy functions, would copy into first byte anyway.
Diffstat (limited to 'source/blender/blenlib/intern/string_utf8.c')
-rw-r--r-- | source/blender/blenlib/intern/string_utf8.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/string_utf8.c b/source/blender/blenlib/intern/string_utf8.c index a8960f1abbb..59f8e7458e1 100644 --- a/source/blender/blenlib/intern/string_utf8.c +++ b/source/blender/blenlib/intern/string_utf8.c @@ -33,8 +33,12 @@ #include <string.h> #include <wchar.h> #include <wctype.h> +#include <stdio.h> +#include <stdlib.h> -#include "BLI_string_utf8.h" +#include "BLI_utildefines.h" + +#include "BLI_string_utf8.h" /* own include */ /* from libswish3, originally called u8_isvalid(), * modified to return the index of the bad character (byte index not utf). |