Skip to content

Commit f801875

Browse files
authored
Merge pull request #1055 from CraftSpider/fix-bibtex
Grow global_str buffer by the correct amount
2 parents ff9f29e + 8b8c01d commit f801875

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/engine_bibtex/src/c_api/global.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl GlobalData {
2323

2424
fn grow(&mut self) {
2525
self.glb_bib_str_ptr.grow(MAX_GLOB_STRS);
26-
self.global_strs.grow(MAX_GLOB_STRS);
26+
self.global_strs.grow((GLOB_STR_SIZE + 1) * MAX_GLOB_STRS);
2727
self.glb_str_end.grow(MAX_GLOB_STRS);
2828
}
2929
}

0 commit comments

Comments
 (0)