[Pkg-wmaker-commits] [wmbubble] 09/207: Fix off-by-one error that caused a segfault when duck was upside-down. (debian)
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:17:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmbubble.
commit 9de7d89c062b38e539d88408c04d9d2edfd817a5
Author: Robert Jacobs <rnjacobs at mit.edu>
Date: Mon Aug 29 19:23:21 2011 -0700
Fix off-by-one error that caused a segfault when duck was upside-down. (debian)
---
bubblemon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bubblemon.c b/bubblemon.c
index c12abed..eb27472 100644
--- a/bubblemon.c
+++ b/bubblemon.c
@@ -1334,7 +1334,7 @@ static void duck_set(int x, int y, int nr, int rev, int upsidedown)
/* calculate this only once */
int ypos = (h + y) * 56;
#ifdef UPSIDE_DOWN_DUCK
- rh = (upsidedown && upside_down_duck_enabled) ? 17 - h : h;
+ rh = (upsidedown && upside_down_duck_enabled) ? 16 - h : h;
#endif
for (w = di; w < dw; w++) {
rw = (rev) ? 17 - w : w;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbubble.git
More information about the Pkg-wmaker-commits
mailing list