Fixed truncated username

This commit is contained in:
Niverton 2017-08-31 20:16:41 +02:00
parent ed477e61e3
commit a8d94316e3
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ void init_form(struct ncform* form, char** list, int max_de, int* de_id)
{
if(fgets(line, sizeof(line), file))
{
snprintf(user, sizeof(file), "%s", line);
strcpy(user, line);
}
if(fgets(line, sizeof(line), file))