summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-04-24 02:18:27 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-04-24 02:18:27 +0000
commit5f3baa8466213e8da752da4105d30b510157fdb3 (patch)
tree5b102d0a2f8bb92889b3ae84b45c1714ef7e396e /app
parent3b189fdff5b53e8308e8d8f62145091facac23de (diff)
don't read past the end of an array
ok matthieu@
Diffstat (limited to 'app')
-rw-r--r--app/xlockmore/modes/polyominoes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/xlockmore/modes/polyominoes.c b/app/xlockmore/modes/polyominoes.c
index 6121f53a9..fc501f737 100644
--- a/app/xlockmore/modes/polyominoes.c
+++ b/app/xlockmore/modes/polyominoes.c
@@ -1469,7 +1469,7 @@ make_one_sided_pentomino(void) {
int i,j,t,u;
j=0;
- for (i=0;i<18;i++) {
+ for (i=0;i<12;i++) {
one_sided_pentomino[j] = pentomino[i];
for (t=0;t<8;t++)
if (one_sided_pentomino[j].transform_list[t]>=4) {