diff --git a/a3/program.c b/a3/program.c index 29dee9b..3dffcc0 100644 --- a/a3/program.c +++ b/a3/program.c @@ -30,7 +30,7 @@ int main() { if(sscanf(line, "%d", &studentsAmount) == 1) { continue; } } - else if(sscanf(line, "%s", &processedName) == 1) + else if(sscanf(line, "%s", processedName) == 1) { strcpy(student[i].name, processedName); strncat(student[i].name, &newLineSymbol, 1);