summaryrefslogtreecommitdiffstats
path: root/generic/tclBinary.c
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2023-04-24 17:46:14 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2023-04-24 17:46:14 (GMT)
commit025b74f7c7add01c5ca6654b03c29241c0845def (patch)
tree8edd4d345294ebfa463a76caad61dd30dc620901 /generic/tclBinary.c
parent51043c29dbb3bb9538b0e3db5088b8ada1799b7b (diff)
downloadtcl-025b74f7c7add01c5ca6654b03c29241c0845def.zip
tcl-025b74f7c7add01c5ca6654b03c29241c0845def.tar.gz
tcl-025b74f7c7add01c5ca6654b03c29241c0845def.tar.bz2
Fix [2e3fed53ba] - binary encode uuencode
Diffstat (limited to 'generic/tclBinary.c')
-rw-r--r--generic/tclBinary.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclBinary.c b/generic/tclBinary.c
index 6f4fb06..f8f006d 100644
--- a/generic/tclBinary.c
+++ b/generic/tclBinary.c
@@ -2764,12 +2764,12 @@ BinaryEncodeUu(
{
Tcl_Obj *resultObj;
unsigned char *data, *start, *cursor;
- int rawLength, i, bits, index;
+ int i, bits, index;
unsigned int n;
int lineLength = 61;
const unsigned char SingleNewline[] = { UCHAR('\n') };
const unsigned char *wrapchar = SingleNewline;
- Tcl_Size j, offset, count = 0, wrapcharlen = sizeof(SingleNewline);
+ Tcl_Size j, rawLength, offset, count = 0, wrapcharlen = sizeof(SingleNewline);
enum { OPT_MAXLEN, OPT_WRAPCHAR };
static const char *const optStrings[] = { "-maxlen", "-wrapchar", NULL };
@@ -2859,7 +2859,7 @@ BinaryEncodeUu(
*/
while (offset < count) {
- int lineLen = count - offset;
+ Tcl_Size lineLen = count - offset;
if (lineLen > rawLength) {
lineLen = rawLength;