diff options
author | Werner Koch <[email protected]> | 2005-07-27 18:10:56 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-07-27 18:10:56 +0000 |
commit | a1cdf3c75fd5c644607b1877207d1d5b507a5bb9 (patch) | |
tree | db7ed08934f367159a6792990476c0991fa44246 /tools/gpgsplit.c | |
parent | Removed directories which are only used by the 1.9 branch (diff) | |
download | gnupg-a1cdf3c75fd5c644607b1877207d1d5b507a5bb9.tar.gz gnupg-a1cdf3c75fd5c644607b1877207d1d5b507a5bb9.zip |
Converted all m_free to xfree etc.
Diffstat (limited to '')
-rw-r--r-- | tools/gpgsplit.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/gpgsplit.c b/tools/gpgsplit.c index 8fc3fb346..3cdae05bf 100644 --- a/tools/gpgsplit.c +++ b/tools/gpgsplit.c @@ -205,7 +205,7 @@ create_filename (int pkttype) static char *name; if (!name) - name = m_alloc (strlen (opt_prefix) + 100 ); + name = xmalloc (strlen (opt_prefix) + 100 ); assert (pkttype < 1000 && pkttype >= 0 ); partno++; @@ -376,9 +376,9 @@ handle_zlib(int algo,FILE *fpin,FILE *fpout) memset (&zs, 0, sizeof zs); inbufsize = 2048; - inbuf = m_alloc (inbufsize); + inbuf = xmalloc (inbufsize); outbufsize = 8192; - outbuf = m_alloc (outbufsize); + outbuf = xmalloc (outbufsize); zs.avail_in = 0; zinit_done = 0; @@ -461,9 +461,9 @@ handle_bzip2(int algo,FILE *fpin,FILE *fpout) memset (&bzs, 0, sizeof bzs); inbufsize = 2048; - inbuf = m_alloc (inbufsize); + inbuf = xmalloc (inbufsize); outbufsize = 8192; - outbuf = m_alloc (outbufsize); + outbuf = xmalloc (outbufsize); bzs.avail_in = 0; zinit_done = 0; @@ -554,7 +554,7 @@ write_part ( const char *fname, FILE *fpin, unsigned long pktlen, if (opt_secret_to_public && (pkttype == PKT_SECRET_KEY || pkttype == PKT_SECRET_SUBKEY)) { - unsigned char *blob = m_alloc (pktlen); + unsigned char *blob = xmalloc (pktlen); int i, len; pkttype = pkttype == PKT_SECRET_KEY? PKT_PUBLIC_KEY:PKT_PUBLIC_SUBKEY; |