file: fix potential buffer overrun in get_fs_free_counts()