fix wrong data size calculation

This commit is contained in:
prx 2022-08-08 23:12:12 +02:00
parent f973351945
commit 4d3b585951
1 changed files with 1 additions and 1 deletions

View File

@ -112,5 +112,5 @@ print_file(FILE *fd)
while ((nread = fread(buffer, 1, sizeof(buffer), fd)) != 0)
fwrite(buffer, 1, nread, stdout);
return nread;
return nread * sizeof(buffer);
}