mirror of
https://github.com/mirror/wget.git
synced 2025-01-08 19:30:41 +08:00
[svn] Doc fix.
This commit is contained in:
parent
0adf1ccfa0
commit
272a9a2d90
14
src/utils.c
14
src/utils.c
@ -1903,15 +1903,13 @@ base64_encode (const void *data, int length, char *dest)
|
|||||||
{
|
{
|
||||||
/* Conversion table. */
|
/* Conversion table. */
|
||||||
static const char tbl[64] = {
|
static const char tbl[64] = {
|
||||||
'A','B','C','D','E','F','G','H',
|
'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P',
|
||||||
'I','J','K','L','M','N','O','P',
|
'Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f',
|
||||||
'Q','R','S','T','U','V','W','X',
|
'g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v',
|
||||||
'Y','Z','a','b','c','d','e','f',
|
'w','x','y','z','0','1','2','3','4','5','6','7','8','9','+','/'
|
||||||
'g','h','i','j','k','l','m','n',
|
|
||||||
'o','p','q','r','s','t','u','v',
|
|
||||||
'w','x','y','z','0','1','2','3',
|
|
||||||
'4','5','6','7','8','9','+','/'
|
|
||||||
};
|
};
|
||||||
|
/* Access bytes in DATA as unsigned char, otherwise the shifts below
|
||||||
|
don't work for data with MSB set. */
|
||||||
const unsigned char *s = data;
|
const unsigned char *s = data;
|
||||||
/* Theoretical ANSI violation when length < 3. */
|
/* Theoretical ANSI violation when length < 3. */
|
||||||
const unsigned char *end = (const unsigned char *) data + length - 2;
|
const unsigned char *end = (const unsigned char *) data + length - 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user