diff options
| author | Kenneth D. Merry <ken@FreeBSD.org> | 2015-02-25 04:30:23 +0000 |
|---|---|---|
| committer | Kenneth D. Merry <ken@FreeBSD.org> | 2015-02-25 04:30:23 +0000 |
| commit | 7b7c7a0533c564c2fcc08a70e651e7df8e2301fb (patch) | |
| tree | 0dee7b276c03c17fd6f8c18d4ff9670eb9376e7d /lib/libmt/mtlib.c | |
| parent | dc1c45001a7cc8862962a000f87295eb04c5f252 (diff) | |
Notes
Diffstat (limited to 'lib/libmt/mtlib.c')
| -rw-r--r-- | lib/libmt/mtlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libmt/mtlib.c b/lib/libmt/mtlib.c index 2329fa6dc2dfa..ad73381c58224 100644 --- a/lib/libmt/mtlib.c +++ b/lib/libmt/mtlib.c @@ -68,7 +68,7 @@ mt_start_element(void *user_data, const char *name, const char **attr) return; mtinfo->level++; - if ((u_int)mtinfo->level > (sizeof(mtinfo->cur_sb) / + if ((u_int)mtinfo->level >= (sizeof(mtinfo->cur_sb) / sizeof(mtinfo->cur_sb[0]))) { mtinfo->error = 1; snprintf(mtinfo->error_str, sizeof(mtinfo->error_str), |
