pahole: Make pipe_seek() honour the 'fp' arg instead of hardcoding stdin

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-06-29 09:57:15 -03:00
parent 9aa01472d9
commit 2d35630fa5
1 changed files with 1 additions and 1 deletions

View File

@ -1670,7 +1670,7 @@ static int pipe_seek(FILE *fp, off_t offset)
if (chunk > offset)
chunk = offset;
while (fread(bf, chunk, 1, stdin) == 1) {
while (fread(bf, chunk, 1, fp) == 1) {
offset -= chunk;
if (offset == 0)
return 0;