36e8d2b792
in crontab -l. The problem is that the skip_header code has a side effect of trying to write to the new temporary cron tab if we run out of comments. Since we don't have an output file in -l, we core-dump trying to fputc to NULL. Simplify the logic so that we don't write in the skip_header function, and we always return the first character after the comment lines to the caller, skipping the '\n'.