diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-27 00:14:20 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-03-27 00:14:20 +0800 |
commit | bf6c1a96179610e03963ce4950ba70cc617a3ab5 (patch) | |
tree | e3ae059630accd3e8b6903c60491700dae0ff136 /mbbsd/screen.c | |
parent | 11d23ad3cef26f44997c9b55b5608d25f39f52a1 (diff) | |
download | pttbbs-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/screen.c')
-rw-r--r-- | mbbsd/screen.c | 2 |
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]; } |