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:
authorAntonio Vazquez <blendergit@gmail.com>2022-11-08 18:29:56 +0300
committerAntonio Vazquez <blendergit@gmail.com>2022-11-08 18:29:56 +0300
commitaa9b976e9f9b8baff194f5bfadcf9e7694cf8d15 (patch)
treeb30ce7abaa65be85c147222cb074571c056b59df /source/blender/blenlib/BLI_string.h
parent410b87ca781d6b6b061bab0440005ac1ab82688f (diff)
parentbbb1d3e5e7eb4059a0324ae786e1e793852963a9 (diff)
Merge branch 'master' into temp-gpencil-automasktemp-gpencil-automask
Diffstat (limited to 'source/blender/blenlib/BLI_string.h')
-rw-r--r--source/blender/blenlib/BLI_string.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_string.h b/source/blender/blenlib/BLI_string.h
index 17abcf52ecc..fb02ea5fb17 100644
--- a/source/blender/blenlib/BLI_string.h
+++ b/source/blender/blenlib/BLI_string.h
@@ -206,6 +206,13 @@ char *BLI_sprintfN(const char *__restrict format, ...) ATTR_WARN_UNUSED_RESULT
ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1, 2);
/**
+ * A wrapper around ::sprintf() which does not generate security warnings.
+ *
+ * \note Use BLI_snprintf for cases when the string size is known.
+ */
+int BLI_sprintf(char *__restrict str, const char *__restrict format, ...);
+
+/**
* This roughly matches C and Python's string escaping with double quotes - `"`.
*
* Since every character may need escaping,