Change the sigb buffer to be the same size as the fread
[oweals/ucert.git] / ucert.c
diff --git a/ucert.c b/ucert.c
index 53a1a058600c447ec05a08e9938b66c62b6d0c24..569b31d5f16e3c8135e0a03dc65883ea3131ae6c 100644 (file)
--- a/ucert.c
+++ b/ucert.c
@@ -414,7 +414,7 @@ static int cert_issue(const char *certfile, const char *pubkeyfile, const char *
        void *c;
        FILE *pkf, *sigf;
        char pkb[512];
-       char sigb[512];
+       char sigb[1024];
        char fname[256], sfname[256];
        char pkfp[17];
        char tmpdir[] = "/tmp/ucert-XXXXXX";