Yet another magic number replaced to calculated value.
authorJason Self <j@jxself.org>
Tue, 15 Sep 2015 21:48:15 +0000 (14:48 -0700)
committerJason Self <j@jxself.org>
Tue, 15 Sep 2015 21:48:15 +0000 (14:48 -0700)
skein_cli.c

index 23f3e1d0747f655d3f0d2b88025a5dee8b5d13ce..220809768a12a5ec51ca78806adc39ec201b4a1f 100644 (file)
@@ -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;