Changeset 1143


Ignore:
Timestamp:
01/09/10 16:20:53 (12 years ago)
Author:
alno
Message:

WebIf:

  • fixed issue with an shown random number in hostname after creating a new user
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/monitor-improvement/oscam-config.c

    r1142 r1143  
    767767  if (!strcmp(token, "user")) { strncpy(account->usr, value, sizeof(account->usr)-1); return; }
    768768  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); return; }
     769  if (!strcmp(token, "hostname")) { strncpy((char *)account->dyndns, value, sizeof(account->dyndns)-1);return; }
    770770  if (!strcmp(token, "betatunnel")) { chk_tuntab(value, &account->ttab); return; }
    771771  if (!strcmp(token, "uniq")) { account->uniq=atoi(value); return; }
     
    11581158        }
    11591159        fputc((int)'\n', f);
    1160         fprintf_conf(f, CONFVARWIDTH, "hostname", "%d\n", account->dyndns);
     1160        fprintf_conf(f, CONFVARWIDTH, "hostname", "%s\n", account->dyndns);
    11611161        fprintf_conf(f, CONFVARWIDTH, "uniq", "%d\n", account->uniq);
    11621162        fprintf_conf(f, CONFVARWIDTH, "sleep", "%d\n", account->tosleep);
Note: See TracChangeset for help on using the changeset viewer.