projects
/
gnushogi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix buffer overflow, patch by Typone Alfredo (alfredo@tupone.it).
[gnushogi.git]
/
gnushogi
/
eval.c
diff --git
a/gnushogi/eval.c
b/gnushogi/eval.c
index
2cfa756
..
15509e2
100644
(file)
--- a/
gnushogi/eval.c
+++ b/
gnushogi/eval.c
@@
-1206,7
+1206,7
@@
AttackedPieceValue(short sq, short side)
s = 0;
- ds += (ds = -fv1[HUNGP]);
+ ds = -fv1[HUNGP] * 2;
hung[c1]++;
shung[sq]++;