human
Solve the following python programming problem given the following code:
def read_ipkg(wininst) : 
    eof_cdir_n = 22 
    eof_cdir_tag = 101010256 
    meta_n = 12 
    stat_info = os.stat (WININST) 
    inst_size = stat_info.st_size 
    with open (WININST, 'rb') as fid : 
        fid.seek ((- eof_cdir_n), 2) 
        s = fid.read (4) 
        tag = struct.unpack ('<l', s) [0] 
        if (not (tag == eof_cdir_tag)) : 
            raise ValueError ('Unexpected bits') 
fid.read ((2 * 4)) 
        s = fid.read (4) 
        nBytesCDir = struct.unpack ('<l', s) [0] 
        s = fid.read (4) 
        ofsCDir = struct.unpack ('<l', s) [0] 
        arc_start = (((inst_size - eof_cdir_n) - nBytesCDir) - ofsCDir) 
        ofs = (arc_start - meta_n) 
        fid.seek (ofs, 0) 
        s = fid.read (4) 
        tag = struct.unpack ('<l', s) [0] 
        if (not (tag == 305419899)) : 
            raise ValueError ('Unexpected bits') 
s = fid.read (4) 
        uncomp_size = struct.unpack ('<l', s) [0] 
        s = fid.read (4) 
        bitmap_size = struct.unpack ('<l', s) [0] 
        pexe_size = ((ofs - uncomp_size) - bitmap_size) 
        fid.seek (ipkg, 0) 
        data = fid.read (uncomp_size) 
        from ConfigParser import ConfigParser 
        parser = ConfigParser () 
        sdata = StringIO (data) 
        def truncate_null(sdata) : 
            cur = sdata.tell () 
            sdata.seek (0, 2) 
            nbytes = sdata.tell () 
            try : 
                n = 10 
                sdata.seek ((- n), 2) 
                null_ind = sdata.read ().find ('\x00') 
                sdata.truncate ((nbytes - (n - null_ind))) 
finally : 
                sdata.seek (cur, 0) 
truncate_null (sdata) 
        parser.readfp (sdata) 
        raise ValueError ('YO - fix wininst METADATA') 
        ipkg_str = base64.b64decode (parser.get ('IPKG_INFO', 'value')) 
        ipkg = InstalledPkgDescription.from_string (ipkg_str) 
        return ipkg 

    
    

    Fix the buggy line: fid.seek (ipkg, 0)
assistant
#Here is Python program to find ('\x00') 
.

fid.seek (pexe_size, 0)