mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
sizeof style
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: base64.c,v 1.24 2001/11/27 00:56:08 gson Exp $ */
|
||||
/* $Id: base64.c,v 1.25 2001/11/27 01:55:53 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -55,7 +55,7 @@ isc_base64_totext(isc_region_t *source, int wordlength,
|
||||
if (wordlength < 4)
|
||||
wordlength = 4;
|
||||
|
||||
memset(buf, 0, sizeof buf);
|
||||
memset(buf, 0, sizeof(buf));
|
||||
while (source->length > 2) {
|
||||
buf[0] = base64[(source->base[0]>>2)&0x3f];
|
||||
buf[1] = base64[((source->base[0]<<4)&0x30)|
|
||||
|
Reference in New Issue
Block a user