Skip to content
Snippets Groups Projects
Commit 95f302f6 authored by Stephen D's avatar Stephen D
Browse files

bug where future bounds check is too conservative

parent c81ff986
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ impl Route {
/// Returns `None` if there isn't enough space for the callsign
#[must_use]
pub fn push_future(&mut self, ident: Identity) -> Option<()> {
let len = ident.callsign().as_bytes().len() + 3;
let len = ident.callsign().as_bytes().len() + 2;
let free_space = self.path.capacity() - self.path.len();
if len > free_space {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment