Skip to content

Commit e207cfd

Browse files
authored
Remove setting of null character in message string
A '\0' char is inserted into p->message while looking for message number; The purpose is unclear as none of the code seem to require it. This shall fix #406
1 parent d11bd6f commit e207cfd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/decode_aprs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,6 @@ static void aprs_message (decode_aprs_t *A, unsigned char *info, int ilen, int q
17881788
// Look for message number.
17891789
char *pno = strchr(p->message, '{');
17901790
if (pno != NULL) {
1791-
*pno = '\0';
17921791
int mlen = strlen(pno+1);
17931792
if (mlen < 1 || mlen > 5) {
17941793
text_color_set(DW_COLOR_ERROR);

0 commit comments

Comments
 (0)