Changeset 1730
- Timestamp:
- 02/27/10 13:39:18 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-config.c
r1729 r1730 670 670 671 671 if (!strcmp(token, "httptpl")) { 672 cfg->http_tpl[0] = '\0'; 672 673 cs_strncpy(cfg->http_tpl, value, sizeof(cfg->http_tpl)); 673 if(strlen(cfg->http_tpl) < (sizeof(cfg->http_tpl)-2) && cfg->http_tpl[strlen(cfg->http_tpl)-1] != '/') { 674 cfg->http_tpl[strlen(cfg->http_tpl)] = '/'; 675 cfg->http_tpl[strlen(cfg->http_tpl)] = '\0'; 674 if(strlen(value) != 0) { 675 if(strlen(cfg->http_tpl) < (sizeof(cfg->http_tpl)-2) && cfg->http_tpl[strlen(cfg->http_tpl)-1] != '/') { 676 cfg->http_tpl[strlen(cfg->http_tpl)] = '/'; 677 cfg->http_tpl[strlen(cfg->http_tpl)] = '\0'; 678 } 676 679 } 677 680 return;
Note:
See TracChangeset
for help on using the changeset viewer.