[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.165,1.166

Jeremy Hylton jhylton@users.sourceforge.net
Mon, 20 Aug 2001 12:06:40 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv9718

Modified Files:
	socketmodule.c 
Log Message:
It will always be a string, because it is created just before this call.



Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.165
retrieving revision 1.166
diff -C2 -d -r1.165 -r1.166
*** socketmodule.c	2001/08/15 17:14:33	1.165
--- socketmodule.c	2001/08/20 19:06:36	1.166
***************
*** 1472,1476 ****
  		return NULL;
  	Py_BEGIN_ALLOW_THREADS
! 	n = recv(s->sock_fd, PyString_AsString(buf), len, flags);
  	Py_END_ALLOW_THREADS
  	if (n < 0) {
--- 1472,1476 ----
  		return NULL;
  	Py_BEGIN_ALLOW_THREADS
! 	n = recv(s->sock_fd, PyString_AS_STRING(buf), len, flags);
  	Py_END_ALLOW_THREADS
  	if (n < 0) {