This commit is contained in:
jpierre%netscape.com 2002-09-07 00:22:50 +00:00
Родитель f643874c5c
Коммит 91afb65580
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -34,7 +34,7 @@
/*
* Base64 decoding (ascii to binary).
*
* $Id: nssb64d.c,v 1.3 2000-04-06 00:38:12 repka%netscape.com Exp $
* $Id: nssb64d.c,v 1.4 2002-09-07 00:20:14 jpierre%netscape.com Exp $
*/
#include "nssb64.h"
@ -282,7 +282,7 @@ pl_base64_decode_buffer (PLBase64Decoder *data, const unsigned char *in,
}
i = 0;
PR_ASSERT((out - data->output_buffer + 3) <= data->output_buflen);
PR_ASSERT((3) <= data->output_buflen);
/*
* Assume we are not at the end; the following function only works

Просмотреть файл

@ -34,7 +34,7 @@
/*
* Base64 encoding (binary to ascii).
*
* $Id: nssb64e.c,v 1.1 2000-04-06 00:39:49 repka%netscape.com Exp $
* $Id: nssb64e.c,v 1.2 2002-09-07 00:22:50 jpierre%netscape.com Exp $
*/
#include "nssb64.h"
@ -147,7 +147,7 @@ pl_base64_encode_buffer (PLBase64Encoder *data, const unsigned char *in,
{
const unsigned char *end = in + size;
char *out = data->output_buffer + data->output_length;
int i = data->in_buffer_count;
unsigned int i = data->in_buffer_count;
PRUint32 n = 0;
int off;
PRUint32 output_threshold;