From 24cb908cb577abcbf3b619f4f7a4a9c880755cf3 Mon Sep 17 00:00:00 2001 From: Travis Goodspeed Date: Sat, 11 May 2019 19:31:36 -0400 Subject: [PATCH] POCSAG null terminator. #118 --- firmware/libs/pocsag.c | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware/libs/pocsag.c b/firmware/libs/pocsag.c index 3c9c732..fe39369 100644 --- a/firmware/libs/pocsag.c +++ b/firmware/libs/pocsag.c @@ -62,6 +62,7 @@ static void pocsag_handledataword(uint32_t word){ if(bitcount==7){ //Record the character. pocsag_buffer[bytecount++]=newchar; + pocsag_buffer[bytecount]=0; //Safety first. if(bytecount>MAXPAGELEN-1) bytecount=0;