[Python-checkins] r54142 - sandbox/trunk/pep3101/unicodeformat.c
eric.smith
python-checkins at python.org
Tue Mar 6 03:43:11 CET 2007
Author: eric.smith
Date: Tue Mar 6 03:43:07 2007
New Revision: 54142
Modified:
sandbox/trunk/pep3101/unicodeformat.c
Log:
Fixed potentially unsafe pointer arithmetic.
Modified: sandbox/trunk/pep3101/unicodeformat.c
==============================================================================
--- sandbox/trunk/pep3101/unicodeformat.c (original)
+++ sandbox/trunk/pep3101/unicodeformat.c Tue Mar 6 03:43:07 2007
@@ -1197,9 +1197,9 @@
*pbuf = '0';
/* see if we're done mid-digit */
- pbuf--;
- if (pbuf < start)
+ if (pbuf == start)
goto DONE;
+ pbuf--;
}
}
More information about the Python-checkins
mailing list