>From 96ca5427cd2b950008a55bb5586702d40f5c078e Mon Sep 17 00:00:00 2001 From: Dieter Deyke Date: Thu, 25 May 2017 13:27:08 +0200 Subject: [PATCH] fix off-by-1 error in sokoban-draw-score which caused on-screen score to be truncated --- packages/sokoban/sokoban.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/sokoban/sokoban.el b/packages/sokoban/sokoban.el index 6e8bee25c..ae6f845cf 100644 --- a/packages/sokoban/sokoban.el +++ b/packages/sokoban/sokoban.el @@ -1,9 +1,9 @@ ;;; sokoban.el --- Implementation of Sokoban for Emacs. -;; Copyright (C) 1998, 2013 Free Software Foundation, Inc. +;; Copyright (C) 1998, 2013, 2017 Free Software Foundation, Inc. ;; Author: Glynn Clements -;; Version: 1.4 +;; Version: 1.4.1 ;; Created: 1997-09-11 ;; Keywords: games ;; Package-Type: multi @@ -41,6 +41,8 @@ ;; Modified: 1998-06-04, added `undo' feature ;; added number of blocks done/total to score and modeline ;; Modified: 2003-06-14, update email address, remove URL +;; Modified: 2017-05-25, fix off-by-1 error in sokoban-draw-score which +;; caused on-screen score to be truncated ;; Tested with XEmacs 20.3/4/5 and Emacs 19.34 @@ -517,7 +519,7 @@ static char * player_xpm[] = { (format "Done: %d/%d" sokoban-done sokoban-targets)))) - (dotimes (y 2) + (dotimes (y 3) (let* ((string (aref strings y)) (len (length string))) (dotimes (x len) -- 2.11.0