diff options
Diffstat (limited to 'usr.bin/mg/match.c')
-rw-r--r-- | usr.bin/mg/match.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/match.c b/usr.bin/mg/match.c index 97985577e78..d35fcfdb66e 100644 --- a/usr.bin/mg/match.c +++ b/usr.bin/mg/match.c @@ -1,4 +1,4 @@ -/* $OpenBSD: match.c,v 1.21 2019/07/02 16:25:39 lum Exp $ */ +/* $OpenBSD: match.c,v 1.22 2021/03/01 10:51:14 lum Exp $ */ /* This file is in the public domain. */ @@ -99,7 +99,7 @@ balance(void) cbo = llength(clp) + 1; } if (--cbo == llength(clp)) - c = '\n'; /* end of line */ + c = *curbp->b_nlchr; /* end of line */ else c = lgetc(clp, cbo); /* somewhere in middle */ |