while you're at it: - you could perhaps properly handle EOF condition from WCMD_fgets in the (enclosing) loop - testing two consecutive "blank" lines could be interesting too see https://www.winehq.org/pipermail/wine-devel/2022-February/206613.html A+