summaryrefslogtreecommitdiffstats
path: root/mbbsd/stuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/stuff.c')
-rw-r--r--mbbsd/stuff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c
index 4cdae745..c35f9a52 100644
--- a/mbbsd/stuff.c
+++ b/mbbsd/stuff.c
@@ -141,6 +141,10 @@ gettime(int line, time4_t dt, const char*head)
do {
getdata_buf(line, i+33, "®É(0-23):", yn, 3, NUMECHO);
} while ((endtime.tm_hour = atoi(yn)) < 0 || endtime.tm_hour > 23);
+ snprintf(yn, sizeof(yn), "%d", ptime->tm_min);
+ do {
+ getdata_buf(line, i+42, "¤À(0-59):", yn, 3, NUMECHO);
+ } while ((endtime.tm_min = atoi(yn)) < 0 || endtime.tm_min > 23);
t = mktime(&endtime);
/* saturation check */
if(t < 0)