]> git.sur5r.net Git - cc65/blobdiff - src/da65/output.c
Fixed a bug
[cc65] / src / da65 / output.c
index 6f3e3f963a9e96f61a6f34cc9ccfb184865e93ce..24977cf40ef5bd75ddfb29785bba37bdd80dfdb8 100644 (file)
@@ -40,6 +40,7 @@
 #include <errno.h>
 
 /* common */
+#include "print.h"
 #include "version.h"
 
 /* da65 */
@@ -139,7 +140,7 @@ void LineFeed (void)
 {
     if (Pass == PassCount) {
        fputc ('\n', F);
-       if (++Line >= PageLength) {
+               if (PageLength > 0 && ++Line >= PageLength) {
            if (FormFeeds) {
                fputc ('\f', F);
            }