* Jonathan McDowell <noodles@earth.li>
*
* Copyright 2002 Project Purple
+ *
+ * $Id: armor.c,v 1.5 2003/06/04 20:57:06 noodles Exp $
*/
#include <assert.h>
/*
* Print armor header
*/
- putchar_func(ctx, sizeof("-----BEGIN PGP PUBLIC KEY BLOCK-----\n"),
+ putchar_func(ctx, sizeof("-----BEGIN PGP PUBLIC KEY BLOCK-----\n") - 1,
(unsigned char *) "-----BEGIN PGP PUBLIC KEY BLOCK-----\n");
- putchar_func(ctx, sizeof("Version: onak " VERSION "\n\n"),
+ putchar_func(ctx, sizeof("Version: onak " VERSION "\n\n") - 1,
(unsigned char *) "Version: onak " VERSION "\n\n");
armor_init(&armor_ctx);
/*
* Print armor footer
*/
- putchar_func(ctx, sizeof("-----END PGP PUBLIC KEY BLOCK-----\n"),
+ putchar_func(ctx, sizeof("-----END PGP PUBLIC KEY BLOCK-----\n") - 1,
(unsigned char *) "-----END PGP PUBLIC KEY BLOCK-----\n");
return 0;