From eb2b52e7ff0411c8710323ed8882e1b716cc3310 Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 29 Jan 2013 14:38:31 +0000 Subject: In case if the field is corrupted... git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5780 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/angel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pttbbs/mbbsd/angel.c b/pttbbs/mbbsd/angel.c index 1eda617c..964dd1bf 100644 --- a/pttbbs/mbbsd/angel.c +++ b/pttbbs/mbbsd/angel.c @@ -385,7 +385,7 @@ angel_log_order_song(const char *angel_nick) { char angel_exp[STRLEN]; syncnow(); - if (cuser.timesetangel) + if (cuser.timesetangel > now) snprintf(angel_exp, sizeof(angel_exp), "%dĪŅ", (cuser.timesetangel - now) / DAY_SECONDS + 1); else -- cgit v1.2.3