Changeset 1143
- Timestamp:
- 01/09/10 16:20:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/monitor-improvement/oscam-config.c
r1142 r1143 767 767 if (!strcmp(token, "user")) { strncpy(account->usr, value, sizeof(account->usr)-1); return; } 768 768 if (!strcmp(token, "pwd")) { strncpy(account->pwd, value, sizeof(account->pwd)-1); return; } 769 if (!strcmp(token, "hostname")) { strncpy((char *)account->dyndns, value, sizeof(account->dyndns)-1); 769 if (!strcmp(token, "hostname")) { strncpy((char *)account->dyndns, value, sizeof(account->dyndns)-1);return; } 770 770 if (!strcmp(token, "betatunnel")) { chk_tuntab(value, &account->ttab); return; } 771 771 if (!strcmp(token, "uniq")) { account->uniq=atoi(value); return; } … … 1158 1158 } 1159 1159 fputc((int)'\n', f); 1160 fprintf_conf(f, CONFVARWIDTH, "hostname", "% d\n", account->dyndns);1160 fprintf_conf(f, CONFVARWIDTH, "hostname", "%s\n", account->dyndns); 1161 1161 fprintf_conf(f, CONFVARWIDTH, "uniq", "%d\n", account->uniq); 1162 1162 fprintf_conf(f, CONFVARWIDTH, "sleep", "%d\n", account->tosleep);
Note:
See TracChangeset
for help on using the changeset viewer.