cmd/htmlroff: fix buffer overflow in t2.c getqarg

This is actually from 2016:
https://plan9port-review.googlesource.com/c/plan9/+/1590

Change-Id: I6f2a3d71a9dd589eff7ab15b3c1d3997254b3c35
This commit is contained in:
Neven Sajko 2019-12-28 21:33:59 +00:00 committed by David du Colombier
parent 8cd46ae7bc
commit d9057521e6

View file

@ -26,7 +26,7 @@ getqarg(void)
Rune *p, *e;
p = buf;
e = p+sizeof buf-1;
e = p + nelem(buf) - 1;
if(getrune() != '\'')
return nil;