Really terminate the phone number string in incoming messages

This commit is contained in:
Pierre Pronchery 2010-06-03 16:01:19 +00:00
parent 226b07c6be
commit 440937ef71

View File

@ -1672,7 +1672,7 @@ static void _cmgr_pdu_parse_number(char const * number, size_t length,
if((buf[i + 1] = number[i]) == 'F')
buf[i + 1] = '\0';
}
buf[31] = '\0';
buf[i] = '\0';
#ifdef DEBUG
fprintf(stderr, "DEBUG: %s(\"%s\", %lu) => \"%s\"\n", __func__, number,
length, buf);