projects
/
skeinsum.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Yet another magic number replaced to calculated value.
[skeinsum.git]
/
skein_cli.c
diff --git
a/skein_cli.c
b/skein_cli.c
index 23f3e1d0747f655d3f0d2b88025a5dee8b5d13ce..220809768a12a5ec51ca78806adc39ec201b4a1f 100644
(file)
--- 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)
{
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;
int NoMatch = 0, NotProper = 0, Computed = 0;
int line = 0;