Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-27 06:47:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-27 06:47:39 +0400
commitd6d8de015c0cc70b8f0e2bbdf3cbd39e6176e31e (patch)
treec900584ced35ff3187d5bec75b365de58e723956 /source/blender/blenlib/intern/string.c
parente903701450fd1ffe4d793a60e3c174ee47fe66dd (diff)
change BLI_strlen_range_utf8 to the more conventional BLI_strnlen_utf8
Diffstat (limited to 'source/blender/blenlib/intern/string.c')
-rw-r--r--source/blender/blenlib/intern/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c
index 40b2fc20cfa..73d88ddd259 100644
--- a/source/blender/blenlib/intern/string.c
+++ b/source/blender/blenlib/intern/string.c
@@ -416,7 +416,7 @@ void BLI_timestr(double _time, char *str)
}
/* determine the length of a fixed-size string */
-size_t BLI_strnlen(const char *str, size_t maxlen)
+size_t BLI_strnlen(const char *str, const size_t maxlen)
{
const char *end = memchr(str, '\0', maxlen);
return end ? (size_t) (end - str) : maxlen;