From: Jason Self Date: Tue, 15 Sep 2015 21:48:15 +0000 (-0700) Subject: Yet another magic number replaced to calculated value. X-Git-Url: https://jxself.org/git/?p=skeinsum.git;a=commitdiff_plain;h=8ea6967db4d5d3f06d54cf83d3df1105d5207a6d;hp=5a4842dfbd9440b46ceaf9a3266810c458cece0f Yet another magic number replaced to calculated value. --- diff --git a/skein_cli.c b/skein_cli.c index 23f3e1d..2208097 100644 --- a/skein_cli.c +++ b/skein_cli.c @@ -233,7 +233,8 @@ int HashMatch(const char StoredDigest[], const char *filename, int quiet) int VerifyHashesFromFile(FILE *fp, int status, int warn, int quiet) { - char hash[500], MsgDigest_tmp[hashbitlen/2]; + char hash[PATH_MAX + hashbitlen/4 + 4]; + char MsgDigest_tmp[hashbitlen/2]; int NoMatch = 0, NotProper = 0, Computed = 0; int line = 0;