add assert if zero is passed to string copy functions, would copy into first byte anyway.

This commit is contained in:
2012-10-31 04:28:49 +00:00
parent ac86beb0e5
commit fd2907a0b6
3 changed files with 15 additions and 6 deletions

View File

@@ -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).