regcomp.c: Don't exceed array bounds
authorKarl Williamson <public@khwilliamson.com>
Tue, 24 Sep 2013 18:27:22 +0000 (12:27 -0600)
committerKarl Williamson <public@khwilliamson.com>
Tue, 24 Sep 2013 19:11:58 +0000 (13:11 -0600)
commit0b771d25a65364e2be52350a7f8b88ad1794b29d
treea661fb89fb35efad89f53c5930ae5bf3befb0506
parent86a8e4b11c37c22367255c6af2fa740fbd79003b
regcomp.c: Don't exceed array bounds

The upper limit of this loop was wrong.  It should be the number of
Posix classes that have space stored for them.  This caused a valgrind
error, but it's only when outputting a regular expression under, for
example,  -Dr
regcomp.c