[libc] Fix copy/paste error in file.cpp (#150802)

Fix using wrong variable due to copy/paste error.

---------

Co-authored-by: codefaber <codefaber>
GitOrigin-RevId: fd7f69bfe7b694d22cd74058faa90b8a93a6d949
2 files changed