[Python-checkins] python/dist/src/Modules getpath.c,1.40.6.1,1.40.6.2
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
Fri, 13 Sep 2002 07:40:52 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv31518/Modules
Modified Files:
Tag: release22-maint
getpath.c
Log Message:
SF # 602108 ensure string is null terminated after strncpy
Index: getpath.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/getpath.c,v
retrieving revision 1.40.6.1
retrieving revision 1.40.6.2
diff -C2 -d -r1.40.6.1 -r1.40.6.2
*** getpath.c 12 Jan 2002 11:13:23 -0000 1.40.6.1
--- getpath.c 13 Sep 2002 14:40:50 -0000 1.40.6.2
***************
*** 408,411 ****
--- 408,412 ----
absolutize(progpath);
strncpy(argv0_path, progpath, MAXPATHLEN);
+ argv0_path[MAXPATHLEN] = '\0';
#ifdef WITH_NEXT_FRAMEWORK