[Python-checkins] python/dist/src/Lib xdrlib.py,1.17,1.18

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


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14211/Lib
Modified Files:
	xdrlib.py 
Log Message:
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.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- xdrlib.py	24 Feb 2005 20:22:11 -0000	1.17
+++ xdrlib.py	29 Sep 2005 20:49:16 -0000	1.18
@@ -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 によって変換されたページ (->オリジナル) /