[Python-checkins] python/dist/src/Modules getpath.c,1.41,1.42
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
Fri, 13 Sep 2002 07:35:59 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv29798/Modules
Modified Files:
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.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** getpath.c 12 Jan 2002 11:05:06 -0000 1.41
--- getpath.c 13 Sep 2002 14:35:56 -0000 1.42
***************
*** 408,411 ****
--- 408,412 ----
absolutize(progpath);
strncpy(argv0_path, progpath, MAXPATHLEN);
+ argv0_path[MAXPATHLEN] = '\0';
#ifdef WITH_NEXT_FRAMEWORK