genpipe.c: fixed minor bug