You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-fs/encfs/files/encfs-1.7.4-r68:69.patch

32 lines
787 B

Index: encfs/base64.cpp
===================================================================
--- encfs/base64.cpp (revision 68)
+++ encfs/base64.cpp (revision 69)
@@ -80,7 +80,7 @@
}
// we have at least one value that can be output
- char outVal = work & mask;
+ unsigned char outVal = work & mask;
work >>= dst2Pow;
workBits -= dst2Pow;
@@ -96,8 +96,15 @@
*outLoc++ = outVal;
// we could have a partial value left in the work buffer..
- if(workBits && outputPartialLastByte)
- *outLoc = work & mask;
+ if(outputPartialLastByte)
+ {
+ while(workBits > 0)
+ {
+ *outLoc++ = work & mask;
+ work >>= dst2Pow;
+ workBits -= dst2Pow;
+ }
+ }
}
}