summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/binascii.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c
index 4776170..7e03799 100644
--- a/Modules/binascii.c
+++ b/Modules/binascii.c
@@ -265,7 +265,9 @@ binascii_a2b_uu(self, args)
*/
while( ascii_len-- > 0 ) {
this_ch = *ascii_data++;
- if ( this_ch != ' ' && this_ch != '\n' && this_ch != '\r' ) {
+ /* Extra '@' may be written as padding in some cases */
+ if ( this_ch != ' ' && this_ch != '@' &&
+ this_ch != '\n' && this_ch != '\r' ) {
PyErr_SetString(Error, "Trailing garbage");
Py_DECREF(rv);
return NULL;