In read_iflags(), we need to set buf to an empty string.