From 7fca47e0cf3ca0d520bacc8f079f4e33d4521b71 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 27 Feb 2010 15:39:13 +0000 Subject: fix in commit today using strnlen, which is only available for gcc. This adds a BLI_strnlen() to the blenlib. Patch provided by Sergey Sharybin (nazgul) --- source/blender/blenlib/intern/BLI_dynstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/intern/BLI_dynstr.c') diff --git a/source/blender/blenlib/intern/BLI_dynstr.c b/source/blender/blenlib/intern/BLI_dynstr.c index 09d28ddbc3a..4b7b61e64d9 100644 --- a/source/blender/blenlib/intern/BLI_dynstr.c +++ b/source/blender/blenlib/intern/BLI_dynstr.c @@ -85,7 +85,7 @@ void BLI_dynstr_append(DynStr *ds, const char *cstr) { void BLI_dynstr_nappend(DynStr *ds, const char *cstr, int len) { DynStrElem *dse= malloc(sizeof(*dse)); - int cstrlen= strnlen(cstr, len); + int cstrlen= BLI_strnlen(cstr, len); dse->str= malloc(cstrlen+1); memcpy(dse->str, cstr, cstrlen); -- cgit v1.2.3