Subversion Repositories wimsdev

Rev

Rev 17457 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17457 Rev 17459
Line 1282... Line 1282...
1282
       snprintf(tmp,sizeof(tmp),"%c%c",p3[12],p3[13]);
1282
       snprintf(tmp,sizeof(tmp),"%c%c",p3[12],p3[13]);
1283
       maxtime.tm_min=atoi(tmp);
1283
       maxtime.tm_min=atoi(tmp);
1284
       maxtime.tm_sec=0;
1284
       maxtime.tm_sec=0;
1285
       maxtime.tm_isdst=-1;
1285
       maxtime.tm_isdst=-1;
1286
       time=mktime(&maxtime);
1286
       time=mktime(&maxtime);
1287
       maxremain=time-nowtime;
1287
       maxremain=-max(time-nowtime,0);
1288
   }
1288
   }
1289
/* end add */
1289
/* end add */
1290
    ovlstrcpy(p1-1,p2); p1-=2;
1290
    ovlstrcpy(p1-1,p2); p1-=2;
1291
  }
1291
  }
1292
  p1=find_word_start(bf2); if(*p1==0) return maxremain;
1292
  p1=find_word_start(bf2); if(*p1==0) return maxremain;