diff options
Diffstat (limited to 'mbbsd/fav.c')
-rw-r--r-- | mbbsd/fav.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/fav.c b/mbbsd/fav.c index 90ce7dc5..7989b9ba 100644 --- a/mbbsd/fav.c +++ b/mbbsd/fav.c @@ -804,9 +804,9 @@ static void move_in_folder(fav_t *fav, int src, int dst) if (fav == NULL) return; count = get_data_number(fav); - if (src < fav->DataTail) + if (src >= fav->DataTail) src = count; - if (dst < fav->DataTail) + if (dst >= fav->DataTail) dst = count; if (src == dst) return; |