Use the t# format where appropriate. Greg Stein.
diff --git a/Modules/binascii.c b/Modules/binascii.c
index 295ff74..26e4b6c 100644
--- a/Modules/binascii.c
+++ b/Modules/binascii.c
@@ -213,7 +213,7 @@
PyObject *rv;
int ascii_len, bin_len;
- if ( !PyArg_ParseTuple(args, "s#", &ascii_data, &ascii_len) )
+ if ( !PyArg_ParseTuple(args, "t#", &ascii_data, &ascii_len) )
return NULL;
/* First byte: binary data length (in bytes) */
@@ -343,7 +343,7 @@
PyObject *rv;
int ascii_len, bin_len;
- if ( !PyArg_ParseTuple(args, "s#", &ascii_data, &ascii_len) )
+ if ( !PyArg_ParseTuple(args, "t#", &ascii_data, &ascii_len) )
return NULL;
bin_len = ((ascii_len+3)/4)*3; /* Upper bound, corrected later */
@@ -457,7 +457,7 @@
int len;
int done = 0;
- if ( !PyArg_ParseTuple(args, "s#", &ascii_data, &len) )
+ if ( !PyArg_ParseTuple(args, "t#", &ascii_data, &len) )
return NULL;
/* Allocate a string that is too big (fixed later) */