mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Cast void pointer to char * before doing arithmetic on it.
This commit is contained in:
parent
19f9abeb0e
commit
0adf1ccfa0
@ -1,3 +1,8 @@
|
||||
2006-06-21 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* utils.c (base64_encode): Cast void pointer to char * before
|
||||
doing arithmetic.
|
||||
|
||||
2006-06-20 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* utils.c (base64_encode): Made TBL const.
|
||||
|
@ -1914,7 +1914,7 @@ base64_encode (const void *data, int length, char *dest)
|
||||
};
|
||||
const unsigned char *s = data;
|
||||
/* Theoretical ANSI violation when length < 3. */
|
||||
const unsigned char *end = data + length - 2;
|
||||
const unsigned char *end = (const unsigned char *) data + length - 2;
|
||||
char *p = dest;
|
||||
|
||||
/* Transform the 3x8 bits to 4x6 bits, as required by base64. */
|
||||
|
Loading…
Reference in New Issue
Block a user