From 1cf29c4d2085183113e2c80f03b668c5391a54b2 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 4 Oct 2019 22:54:17 -0400 Subject: [PATCH] Fix truncation of comments, broke in f133c4d0b35e1338cb12bc3fae0cbdd4488fae82. --- src/V3File.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/V3File.cpp b/src/V3File.cpp index d7f94ed2f..ba04a981e 100644 --- a/src/V3File.cpp +++ b/src/V3File.cpp @@ -693,6 +693,7 @@ void V3OutFormatter::puts(const char *strg) { // Output ignoring contents to EOL cp++; while (*cp && cp[1] && cp[1] != '\n') putcNoTracking(*cp++); + if (*cp) putcNoTracking(*cp); } } break;