projects
/
skeinsum.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a4842d
)
Yet another magic number replaced to calculated value.
author
Jason Self
<j@jxself.org>
Tue, 15 Sep 2015 21:48:15 +0000
(14:48 -0700)
committer
Jason Self
<j@jxself.org>
Tue, 15 Sep 2015 21:48:15 +0000
(14:48 -0700)
skein_cli.c
patch
|
blob
|
history
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)
{
- 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;