]> git.cameronkatri.com Git - mandoc.git/blobdiff - roff.c
Bugfix:
[mandoc.git] / roff.c
diff --git a/roff.c b/roff.c
index e25a74efe9865e30b16db5f7378ea8f5a68aa798..0304156f7dc39d79a93667e792bce7b6cd911fcf 100644 (file)
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/*     $Id: roff.c,v 1.353 2018/12/18 22:00:02 schwarze Exp $ */
+/*     $Id: roff.c,v 1.354 2018/12/20 03:41:54 schwarze Exp $ */
 /*
  * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -1588,7 +1588,7 @@ mandoc_getarg(char **cpp, int ln, int *pos)
                        switch (cp[1]) {
                        case 'a':
                        case 't':
-                               cp[0] = '\t';
+                               cp[-pairs] = '\t';
                                /* FALLTHROUGH */
                        case '\\':
                                pairs++;