Changeset 7548
- Timestamp:
- 09/30/12 22:30:32 (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-config-global.c
r7545 r7548 302 302 } 303 303 if (strlen((const char *)(cfg.http_dyndns[0])) > 0 || cfg.http_full_cfg) { 304 fprintf_conf(f, token, "%s", ""); 304 fprintf_conf(f, token, "%s", ""); // it should not have \n at the end 305 305 for (i = 0; i < MAX_HTTP_DYNDNS; i++) { 306 306 if (cfg.http_dyndns[i][0]) { … … 358 358 } 359 359 unsigned int i; 360 fprintf_conf(f, "%s", token);360 fprintf_conf(f, token, "%s", ""); // it should not have \n at the end 361 361 for (i = 0; i < sizeof(cfg.c33_key); i++) { 362 362 fprintf(f, "%02X", cfg.c33_key[i]); … … 463 463 return; 464 464 } 465 fprintf_conf(f, token, "%s", ""); 465 fprintf_conf(f, token, "%s", ""); // it should not have \n at the end 466 466 unsigned int i; 467 467 for (i = 0; i < 14; i++) { -
trunk/oscam-config-reader.c
r7547 r7548 1295 1295 1296 1296 fprintf_conf(f, "protocol", "%s\n", ctyp); 1297 fprintf_conf(f, "device", "%s", rdr->device); 1297 fprintf_conf(f, "device", "%s", rdr->device); // it should not have \n at the end 1298 1298 1299 1299 if ((rdr->r_port || cfg.http_full_cfg) && !isphysical) … … 1310 1310 1311 1311 if (rdr->ncd_key[0] || rdr->ncd_key[13] || cfg.http_full_cfg) { 1312 fprintf_conf(f, " %s", "key");1312 fprintf_conf(f, "key", "%s", ""); // it should not have \n at the end 1313 1313 if(rdr->ncd_key[0] || rdr->ncd_key[13]){ 1314 1314 for (j = 0; j < 14; j++) { … … 1420 1420 1421 1421 if ((rdr->atr[0] || cfg.http_full_cfg) && isphysical) { 1422 fprintf_conf(f, " %s", "atr");1422 fprintf_conf(f, "atr", "%s", ""); // it should not have \n at the end 1423 1423 if(rdr->atr[0]){ 1424 1424 for (j=0; j < rdr->atrlen/2; j++) { -
trunk/oscam-config.c
r7545 r7548 31 31 } 32 32 fprintf(f,"[%s]\n", sidtab->label); 33 fprintf_conf(f, "caid", "%s", ""); 33 fprintf_conf(f, "caid", "%s", ""); // it should not have \n at the end 34 34 for (i=0; i<sidtab->num_caid; i++){ 35 35 if (i==0) fprintf(f,"%04X", sidtab->caid[i]); … … 37 37 } 38 38 fputc((int)'\n', f); 39 fprintf_conf(f, "provid", "%s", ""); 39 fprintf_conf(f, "provid", "%s", ""); // it should not have \n at the end 40 40 for (i=0; i<sidtab->num_provid; i++){ 41 41 if (i==0) fprintf(f,"%06X", sidtab->provid[i]); … … 43 43 } 44 44 fputc((int)'\n', f); 45 fprintf_conf(f, "srvid", "%s", ""); 45 fprintf_conf(f, "srvid", "%s", ""); // it should not have \n at the end 46 46 for (i=0; i<sidtab->num_srvid; i++){ 47 47 if (i==0) fprintf(f,"%04X", sidtab->srvid[i]);
Note:
See TracChangeset
for help on using the changeset viewer.