X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=armor.c;fp=armor.c;h=343f9d6779bb6ab81d58f832c49161edccce672a;hb=9b511d8943fa34c9dd09999a4a72ae8405f34164;hp=9f5c19a32eeadac1d40fc84bced2d55c49ca7c12;hpb=42bcfe2cae29f375af4cf2cd3ccfa196b77a3946;p=onak.git diff --git a/armor.c b/armor.c index 9f5c19a..343f9d6 100644 --- a/armor.c +++ b/armor.c @@ -303,9 +303,9 @@ int armor_openpgp_stream(int (*putchar_func)(void *ctx, size_t count, /* * 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); @@ -317,7 +317,7 @@ int armor_openpgp_stream(int (*putchar_func)(void *ctx, size_t count, /* * 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;