uuencode: style: just use pointer *b
it doesn't make sense to use b[2] here anyway, and it is incorrect (should be b[3]).
This commit is contained in:
parent
a51b01ff90
commit
fa18379a05
@ -7,10 +7,9 @@
|
|||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
static unsigned int
|
static unsigned int
|
||||||
b64e(unsigned char b[2])
|
b64e(unsigned char *b)
|
||||||
{
|
{
|
||||||
unsigned int o = 0;
|
unsigned int o, p = b[2] | (b[1] << 8) | (b[0] << 16);
|
||||||
unsigned int p = b[2] | (b[1] << 8) | (b[0] << 16);
|
|
||||||
const char b64et[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
const char b64et[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||||
|
|
||||||
o = b64et[p & 0x3f]; p >>= 6;
|
o = b64et[p & 0x3f]; p >>= 6;
|
||||||
|
Loading…
Reference in New Issue
Block a user