/[gentoo-x86]/sys-fs/encfs/files/encfs-1.7.4-r68:69.patch
Gentoo

Contents of /sys-fs/encfs/files/encfs-1.7.4-r68:69.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Nov 22 23:05:54 2011 UTC (2 years, 11 months ago) by sping
Branch: MAIN
CVS Tags: HEAD
sys-fs/encfs: Bump to 1.7.4 (bug #346299)

(Portage version: 2.1.10.36/cvs/Linux x86_64)

1 Index: encfs/base64.cpp
2 ===================================================================
3 --- encfs/base64.cpp (revision 68)
4 +++ encfs/base64.cpp (revision 69)
5 @@ -80,7 +80,7 @@
6 }
7
8 // we have at least one value that can be output
9 - char outVal = work & mask;
10 + unsigned char outVal = work & mask;
11 work >>= dst2Pow;
12 workBits -= dst2Pow;
13
14 @@ -96,8 +96,15 @@
15 *outLoc++ = outVal;
16
17 // we could have a partial value left in the work buffer..
18 - if(workBits && outputPartialLastByte)
19 - *outLoc = work & mask;
20 + if(outputPartialLastByte)
21 + {
22 + while(workBits > 0)
23 + {
24 + *outLoc++ = work & mask;
25 + work >>= dst2Pow;
26 + workBits -= dst2Pow;
27 + }
28 + }
29 }
30 }
31

  ViewVC Help
Powered by ViewVC 1.1.20