Rev 3840 | Rev 7079 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3840 | Rev 7076 | ||
---|---|---|---|
Line 141... | Line 141... | ||
141 | t=atoi(tbuf)*60+atoi(tbuf+3); |
141 | t=atoi(tbuf)*60+atoi(tbuf+3); |
142 | memmove(sbuf,p+18,4); sbuf[4]=0; |
142 | memmove(sbuf,p+18,4); sbuf[4]=0; |
143 | p1=strchr(p,','); if(p1==NULL) return; |
143 | p1=strchr(p,','); if(p1==NULL) return; |
144 | if(!isdigit(*(p1+1))) return; |
144 | if(!isdigit(*(p1+1))) return; |
145 | snprintf(cbuf,sizeof(cbuf),"%s",p1+1); |
145 | snprintf(cbuf,sizeof(cbuf),"%s",p1+1); |
146 | for(p2=cbuf;isdigit(*p2); p2++ |
146 | for(p2=cbuf;isdigit(*p2); p2++); |
- | 147 | *p2=0; cl=atoi(cbuf); |
|
147 | *p1=0; for(p1--;p1>p && !isspace(*(p1-1)); p1--); |
148 | *p1=0; for(p1--;p1>p && !isspace(*(p1-1)); p1--); |
148 | snprintf(ubuf,sizeof(ubuf),"%s",p1); |
149 | snprintf(ubuf,sizeof(ubuf),"%s",p1); |
149 | for(i=0;i<sescnt;i++) { |
150 | for(i=0;i<sescnt;i++) { |
150 | if(cl==ses[i].cl && memcmp(sbuf,ses[i].s,4)==0 && |
151 | if(cl==ses[i].cl && memcmp(sbuf,ses[i].s,4)==0 && |
151 | ses[i].end>=t-MAX_LAPSE) { |
152 | ses[i].end>=t-MAX_LAPSE) { |