From fd2907a0b656f06c90243a5956df44d47d4bddd6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 31 Oct 2012 04:28:49 +0000 Subject: add assert if zero is passed to string copy functions, would copy into first byte anyway. --- source/blender/blenlib/intern/string_utf8.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/blender/blenlib/intern/string_utf8.c') 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 #include #include +#include +#include -#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). -- cgit v1.2.3