pkstrings: increase array size for 'index out of bounds'

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-07-05 18:22:44 +02:00
parent 93d9994859
commit 0444350885
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -203,7 +203,7 @@ lazy_static! {
(0x50, '@'),
];
let mut vec: Vec<Option<char>> = [None; 255].to_vec();
let mut vec: Vec<Option<char>> = [None; 256].to_vec();
for (k, v) in tmp.iter() {
vec[*k] = Some(*v);
}