Changeset 33047


Ignore:
Timestamp:
Aug 7, 2017, 8:00:59 PM (2 weeks ago)
Author:
brainslayer
Message:

fix crashbug

Location:
src/router/httpd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/modules/callvalidate.c

    r32886 r33047  
    7373#define SERVICEALT_MODULE "/jffs/usr/lib/validate.so"
    7474#define VISSERVICEALT_MODULE "/jffs/usr/lib/visuals.so"
    75 //#define SERVICEALT_MODULE "/tmp/validate.so"
    76 //#define VISSERVICEALT_MODULE "/tmp/visuals.so"
    77 
    78 //#define SERVICE_MODULE "/tmp/validate.so"
    79 //#define VISSERVICE_MODULE "/tmp/visuals.so"
     75#define SERVICEALT_MODULE "/tmp/validate.so"
     76#define VISSERVICEALT_MODULE "/tmp/visuals.so"
     77
     78#define SERVICE_MODULE "/tmp/validate.so"
     79#define VISSERVICE_MODULE "/tmp/visuals.so"
    8080
    8181#define cprintf(fmt, args...)
  • src/router/httpd/validate/webs.c

    r32995 r33047  
    176176}
    177177
    178 void validate_filter_tod(webs_t wp)
     178static void validate_filter_tod(webs_t wp)
    179179{
    180180        char buf[256] = "";
     
    253253                        time[strlen(time) - 1] = '\0';
    254254
    255                 snprintf(tod_buf, sizeof(tod_buf), "%s %s %s %s %s %s %s", week0, week1, week2, week3, week4, week5, week6);
     255                snprintf(tod_buf, sizeof(tod_buf), "%d %d %d %d %d %d %d", week0, week1, week2, week3, week4, week5, week6);
    256256        }
    257257        if (time_all == 1) {
Note: See TracChangeset for help on using the changeset viewer.