From d1cc84c0015cc9cffdcf806b87b1140ca0e2c6b0 Mon Sep 17 00:00:00 2001 From: Ben Menking Date: Sat, 30 May 2026 16:16:36 -0400 Subject: [PATCH] must be a null term there --- src/CoreParser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CoreParser.php b/src/CoreParser.php index db08160..594ed73 100644 --- a/src/CoreParser.php +++ b/src/CoreParser.php @@ -121,8 +121,8 @@ class CoreParser { if( strlen($payload) > CoreProtocol::PUB_KEY_SIZE + 2 ) { $m->type = ord($payload[33]); $m->flags = ord($payload[34]); - $m->out_path = self::formatPublicKey(substr($payload, 35, CoreProtocol::MAX_PATH_SIZE)); - $m->name = substr($payload, 99, 32); + $m->out_path = self::formatPublicKey(substr($payload, 35, CoreProtocol::MAX_PATH_SIZE+1)); + $m->name = substr($payload, 100, 32); if( strlen($payload) > 204 ) { $m->last_advert_time = unpack('V', substr($payload, 203, 4))[1];