[Python-checkins] python/dist/src/Lib xdrlib.py,1.16,1.16.4.1

birkenfeld@users.sourceforge.net birkenfeld at users.sourceforge.net
Thu Sep 29 22:49:24 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14223/Lib
Modified Files:
 Tag: release24-maint
	xdrlib.py 
Log Message:
backport patch [ 1300515 ] xdrlib.py: pack_fstring() did not use null bytes for padding
Index: xdrlib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xdrlib.py,v
retrieving revision 1.16
retrieving revision 1.16.4.1
diff -u -d -r1.16 -r1.16.4.1
--- xdrlib.py	12 Feb 2004 17:35:07 -0000	1.16
+++ xdrlib.py	29 Sep 2005 20:49:21 -0000	1.16.4.1
@@ -79,8 +79,8 @@
 def pack_fstring(self, n, s):
 if n < 0:
 raise ValueError, 'fstring size must be nonnegative'
- n = ((n+3)/4)*4
 data = s[:n]
+ n = ((n+3)/4)*4
 data = data + (n - len(data)) * '0円'
 self.__buf.write(data)
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /