|
@@ -209,12 +209,12 @@ static inline int print_content_length(str* dest, str* body)
|
|
|
*/
|
|
|
static inline int print_cseq_num(str* _s, dlg_t* _d)
|
|
|
{
|
|
|
- static char cseq[10];
|
|
|
+ static char cseq[INT2STR_MAX_LEN];
|
|
|
char* tmp;
|
|
|
int len;
|
|
|
|
|
|
tmp = int2str(_d->loc_seq.value, &len);
|
|
|
- if (len >= sizeof(cseq)) {
|
|
|
+ if (len > sizeof(cseq)) {
|
|
|
LOG(L_ERR, "print_cseq_num: cseq too big\n");
|
|
|
return -1;
|
|
|
}
|