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:
authorRoel Spruit <roel@spruitje.nl>2004-01-15 00:48:56 +0300
committerRoel Spruit <roel@spruitje.nl>2004-01-15 00:48:56 +0300
commit8df5de525c06f55a14e2390f24df2de91643af2a (patch)
tree60f23b0c49be5d5617de45b08cd071cc2342d214 /source/blender/python/BPY_menus.c
parent0d9d16e6e9127809b63188272b633c61c6240f31 (diff)
added python script files to MSVC 6.0 projectfiles and changed snprintf to PyOS_snprintf
Diffstat (limited to 'source/blender/python/BPY_menus.c')
-rw-r--r--source/blender/python/BPY_menus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/BPY_menus.c b/source/blender/python/BPY_menus.c
index b5d9610d3d8..14d763f069f 100644
--- a/source/blender/python/BPY_menus.c
+++ b/source/blender/python/BPY_menus.c
@@ -42,6 +42,7 @@
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <Python.h>
#ifndef WIN32
#include <dirent.h>
@@ -103,7 +104,7 @@ char *BPyMenu_CreatePupmenuStr(BPyMenu *pym, short menugroup)
str[0] = '\0';
- snprintf(str2, sizeof(str2), "%s: %s%%t",
+ PyOS_snprintf(str2, sizeof(str2), "%s: %s%%t",
BPyMenu_group_itoa(menugroup), pym->name);
strcat(str, str2);