Mercurial > ~dholland > hg > tradcpp > index.cgi
comparison place.c @ 114:05d67dd74e1f
Reduce the maximum include depth from 128 to 120.
This way with the default limits on netbsd we hit it before we run out
of file handles.
author | David A. Holland |
---|---|
date | Tue, 11 Jun 2013 13:55:38 -0400 |
parents | 2b0b61fd1a36 |
children | 26ee741196d1 |
comparison
equal
deleted
inserted
replaced
113:1e7144176a42 | 114:05d67dd74e1f |
---|---|
104 { | 104 { |
105 struct placefile *pf; | 105 struct placefile *pf; |
106 | 106 |
107 pf = placefile_create(place, file, issystem); | 107 pf = placefile_create(place, file, issystem); |
108 placefilearray_add(&placefiles, pf, NULL); | 108 placefilearray_add(&placefiles, pf, NULL); |
109 if (pf->depth > 128) { | 109 if (pf->depth > 120) { |
110 complain(place, "Maximum include nesting depth exceeded"); | 110 complain(place, "Maximum include nesting depth exceeded"); |
111 die(); | 111 die(); |
112 } | 112 } |
113 return pf; | 113 return pf; |
114 } | 114 } |