projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Nico Golde:
[apps/madmutt.git]
/
pgppacket.c
diff --git
a/pgppacket.c
b/pgppacket.c
index
5da38b7
..
206f13c
100644
(file)
--- a/
pgppacket.c
+++ b/
pgppacket.c
@@
-22,6
+22,8
@@
#include "pgplib.h"
#include "pgppacket.h"
#include "pgplib.h"
#include "pgppacket.h"
+#include "lib/mem.h"
+
#define CHUNKSIZE 1024
static unsigned char *pbuf = NULL;
#define CHUNKSIZE 1024
static unsigned char *pbuf = NULL;
@@
-64,7
+66,7
@@
unsigned char *pgp_read_packet (FILE * fp, size_t * len)
if (!plen) {
plen = CHUNKSIZE;
if (!plen) {
plen = CHUNKSIZE;
- pbuf =
safe
_malloc (plen);
+ pbuf =
mem
_malloc (plen);
}
if (fread (&ctb, 1, 1, fp) < 1) {
}
if (fread (&ctb, 1, 1, fp) < 1) {
@@
-198,5
+200,5
@@
bail:
void pgp_release_packet (void)
{
plen = 0;
void pgp_release_packet (void)
{
plen = 0;
-
FREE
(&pbuf);
+
mem_free
(&pbuf);
}
}