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-31 08:28:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-31 08:28:49 +0400
commitfd2907a0b656f06c90243a5956df44d47d4bddd6 (patch)
tree1795fc58c0aea430d1d0ffdb7c9a7db6cf05fb5a /source/blender/blenlib/BLI_string.h
parentac86beb0e569075e2bd6e2da914bda2831b06c18 (diff)
add assert if zero is passed to string copy functions, would copy into first byte anyway.
Diffstat (limited to 'source/blender/blenlib/BLI_string.h')
-rw-r--r--source/blender/blenlib/BLI_string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_string.h b/source/blender/blenlib/BLI_string.h
index ba906e1221c..70c89773f02 100644
--- a/source/blender/blenlib/BLI_string.h
+++ b/source/blender/blenlib/BLI_string.h
@@ -162,7 +162,7 @@ __attribute__((nonnull))
#endif
;
-size_t BLI_strescape(char *__restrict dst, const char *__restrict src, const size_t maxlen)
+size_t BLI_strescape(char *__restrict dst, const char *__restrict src, const size_t maxncpy)
#ifdef __GNUC__
__attribute__((nonnull))
#endif