Browse Source

MT#55283 fix wrong string length being used

These strings are not null terminated. Use the correct string length.

Change-Id: I15d7541af0d9cc09401180a7d45edbec9b915aa2
pull/1880/head
Richard Fuchs 1 year ago
parent
commit
0a1d658766
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/sdp.c

+ 1
- 1
daemon/sdp.c View File

@ -368,7 +368,7 @@ static void sdp_manipulations_add(GString *s, const struct sdp_manipulations * s
{
str * attr_value = l->data;
g_string_append_len(s, "a=", 2);
g_string_append_len(s, attr_value->s, strlen(attr_value->s));
g_string_append_len(s, attr_value->s, attr_value->len);
g_string_append_len(s, "\r\n", 2);
}
}


Loading…
Cancel
Save