[Patches] small bug in posixmodule.c

Trent Mick trentm@activestate.com
Mon, 5 Jun 2000 17:29:39 -0700


Discussion:

Fix a small bug in posixmodule.c where a char* is being dereferenced where it
should not be.


Legal:

I confirm that, to the best of my knowledge and belief, this
contribution is free of any claims of third parties under
copyright, patent or other rights or interests ("claims").  To
the extent that I have any such claims, I hereby grant to CNRI a
nonexclusive, irrevocable, royalty-free, worldwide license to
reproduce, distribute, perform and/or display publicly, prepare
derivative versions, and otherwise use this contribution as part
of the Python software and its related documentation, or any
derivative versions thereof, at no cost to CNRI or its licensed
users, and to authorize others to do so.

I acknowledge that CNRI may, at its sole discretion, decide
whether or not to incorporate this contribution in the Python
software and its related documentation.  I further grant CNRI
permission to use my name and other identifying information
provided to CNRI by me for use in connection with the Python
software and its related documentation.

Patch:

*** /home/trentm/main/contrib/python/dist/src/Modules/posixmodule.c	Thu Jun  1 19:19:27 2000
--- /home/trentm/main/Apps/Perlium/Python/dist/src/Modules/posixmodule.c	Mon Jun  5 17:20:54 2000
***************
*** 930,936 ****
  
  	if (FindClose(hFindFile) == FALSE) {
  		errno = GetLastError();
! 		return posix_error_with_filename(&name);
  	}
  
  	return d;
--- 929,935 ----
  
  	if (FindClose(hFindFile) == FALSE) {
  		errno = GetLastError();
! 		return posix_error_with_filename(name);
  	}
  
  	return d;


-- 
Trent Mick
trentm@activestate.com