Fixed a segfault due to a buffer overrun caused by forgetting to terminate the output source (from remvoing comments) with an EOF.