#include "pgplib.h"
#include "pgppacket.h"
+#include "lib/mem.h"
+
#define CHUNKSIZE 1024
static unsigned char *pbuf = NULL;
if (!plen) {
plen = CHUNKSIZE;
- pbuf = safe_malloc (plen);
+ pbuf = mem_malloc (plen);
}
if (fread (&ctb, 1, 1, fp) < 1) {
void pgp_release_packet (void)
{
plen = 0;
- FREE (&pbuf);
+ mem_free (&pbuf);
}