All pastes #347784 Raw Edit

elubie

public text v1 · immutable
·published 2007-02-09 18:09 UTC
rendered paste body
Index: source/blender/python/BPY_interface.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/BPY_interface.c,v
retrieving revision 1.93
diff -u -r1.93 BPY_interface.c
--- source/blender/python/BPY_interface.c	31 Jan 2007 03:12:26 -0000	1.93
+++ source/blender/python/BPY_interface.c	9 Feb 2007 18:02:44 -0000
@@ -332,11 +332,11 @@
 ****************************************************************************/
 void BPY_post_start_python( void )
 {
-	char dirpath[FILE_MAXDIR];
+	char dirpath[FILE_MAX];
 	char *sdir = NULL;
 
 	if(U.pythondir[0] != '\0' ) {
-		char modpath[FILE_MAXDIR];
+		char modpath[FILE_MAX];
 		int upyslen = strlen(U.pythondir);
 
 		/* check if user pydir ends with a slash and, if so, remove the slash
@@ -349,7 +349,7 @@
 				U.pythondir[upyslen - 1] = '\0';
 		}
 
-		BLI_strncpy(dirpath, U.pythondir, FILE_MAXDIR);
+		BLI_strncpy(dirpath, U.pythondir, FILE_MAX);
 		BLI_convertstringcode(dirpath, G.sce, 0);
 		syspath_append(dirpath);	/* append to module search path */
 
Index: source/blender/python/BPY_menus.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/BPY_menus.c,v
retrieving revision 1.36
diff -u -r1.36 BPY_menus.c
--- source/blender/python/BPY_menus.c	17 Jan 2007 15:04:37 -0000	1.36
+++ source/blender/python/BPY_menus.c	9 Feb 2007 18:00:37 -0000
@@ -823,7 +823,7 @@
 	struct dirent *de;
 	struct stat status;
 	char *file_extension;
-	char path[FILE_MAXDIR];
+	char path[FILE_MAX];
 	char subdir[FILE_MAXDIR];
 	char *s = NULL;
 	

***** CVS exited normally with code 1 *****