summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-03-27 00:14:20 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-03-27 00:14:20 +0800
commitbf6c1a96179610e03963ce4950ba70cc617a3ab5 (patch)
treee3ae059630accd3e8b6903c60491700dae0ff136 /mbbsd
parent11d23ad3cef26f44997c9b55b5608d25f39f52a1 (diff)
downloadpttbbs-bf6c1a96179610e03963ce4950ba70cc617a3ab5.tar
pttbbs-bf6c1a96179610e03963ce4950ba70cc617a3ab5.tar.gz
pttbbs-bf6c1a96179610e03963ce4950ba70cc617a3ab5.tar.bz2
pttbbs-bf6c1a96179610e03963ce4950ba70cc617a3ab5.tar.lz
pttbbs-bf6c1a96179610e03963ce4950ba70cc617a3ab5.tar.xz
pttbbs-bf6c1a96179610e03963ce4950ba70cc617a3ab5.tar.zst
pttbbs-bf6c1a96179610e03963ce4950ba70cc617a3ab5.zip
fix crash, workaround for incorrect roll after resize.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3306 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/screen.c b/mbbsd/screen.c
index 9eabb276..1aa10f6b 100644
--- a/mbbsd/screen.c
+++ b/mbbsd/screen.c
@@ -44,7 +44,7 @@ static inline
screenline_t* GetCurrentLine(){
register int i = cur_ln + roll;
if(i >= scr_lns)
- i -= scr_lns;
+ i %= scr_lns;
return &big_picture[i];
}