/*
* 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;