summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roff_escape.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/roff_escape.c b/roff_escape.c
index 20e5267a..1a5df40f 100644
--- a/roff_escape.c
+++ b/roff_escape.c
@@ -124,6 +124,9 @@ roff_escape(const char *buf, const int ln, const int aesc,
rval = ESCAPE_IGNORE;
goto out;
+ case '\0':
+ iendarg = --iend;
+ /* FALLTHROUGH */
case '\\':
default:
iarg--;