Skip to content
Snippets Groups Projects
Commit af787f90 authored by 20041679's avatar 20041679
Browse files

fixed format size (it was right)

parent 1c629ae0
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ typedef struct {
Person person_read(FILE *f) {
Person person;
char format[4 + 4 + 3];
char format[4 + 1 + 4 + 1 + 3];
sprintf(
format, "%%%zus %%%zus %%hu",
ARR_LEN(person.first_name),
......@@ -25,7 +25,6 @@ Person person_read(FILE *f) {
&person.age
);
return person;
}
void person_print(FILE *f, Person person) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment