diff options
author | 2014-11-01 04:03:22 +0000 | |
---|---|---|
committer | 2014-11-01 04:03:22 +0000 | |
commit | 064c012d4408a5a72ca8ad3e96fae3e239b292c5 (patch) | |
tree | e528aa4a02efe46fdf8195a113e4bf7fae46a7cd | |
parent | Make it clear that dma buffers are link to xfers, no functional change. (diff) | |
download | wireguard-openbsd-064c012d4408a5a72ca8ad3e96fae3e239b292c5.tar.xz wireguard-openbsd-064c012d4408a5a72ca8ad3e96fae3e239b292c5.zip |
fix a typo causing crashes in Unicode string length measurement
-rw-r--r-- | usr.bin/mandoc/term.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/term.c b/usr.bin/mandoc/term.c index 9193f192cda..8ff50bf20aa 100644 --- a/usr.bin/mandoc/term.c +++ b/usr.bin/mandoc/term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: term.c,v 1.93 2014/10/29 00:17:01 schwarze Exp $ */ +/* $OpenBSD: term.c,v 1.94 2014/11/01 04:03:22 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -682,7 +682,7 @@ term_strlen(const struct termp *p, const char *cp) switch (esc) { case ESCAPE_UNICODE: - uc = mchars_num2uc(seq + 1, sz - 1); + uc = mchars_num2uc(seq + 1, ssz - 1); break; case ESCAPE_NUMBERED: uc = mchars_num2char(seq, ssz); |