diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-15 07:54:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-15 07:54:57 +0400 |
commit | 02f5b0fc08e979dab65a7bc1ee0383098ac99b2e (patch) | |
tree | 3ef72ad141a74612d3c77b031fff0dfc54f87f08 /source/blender/blenlib/BLI_string.h | |
parent | a91f51b67b48c0a78032ed569d5a163718ec5cce (diff) |
debug option (off by default), for BLI_string to help find incorrect sizes being passed in (enable in source files only)
Diffstat (limited to 'source/blender/blenlib/BLI_string.h')
-rw-r--r-- | source/blender/blenlib/BLI_string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_string.h b/source/blender/blenlib/BLI_string.h index c6f0bc49c9b..02eb0734f8c 100644 --- a/source/blender/blenlib/BLI_string.h +++ b/source/blender/blenlib/BLI_string.h @@ -93,14 +93,14 @@ __attribute__((nonnull)) #endif ; -size_t BLI_snprintf(char *__restrict buffer, size_t len, const char *__restrict format, ...) +size_t BLI_snprintf(char *__restrict dst, size_t maxncpy, const char *__restrict format, ...) #ifdef __GNUC__ __attribute__ ((format(printf, 3, 4))) __attribute__((nonnull)) #endif ; -size_t BLI_vsnprintf(char *__restrict buffer, size_t count, const char *__restrict format, va_list arg) +size_t BLI_vsnprintf(char *__restrict dst, size_t maxncpy, const char *__restrict format, va_list arg) #ifdef __GNUC__ __attribute__ ((format(printf, 3, 0))) #endif |