The spherical tag contains the garbage value
Change-Id: Ie47d8545564ac894f5137383341a3b46573b3a08
return;
}
- *value = (char *) malloc (value_length);
-
- if (*value == NULL) {
- GST_ERROR_OBJECT (qtdemux, "error: malloc failed\n");
- return;
- }
-
- strncpy (*value, value_start, value_length);
+ *value = strndup(value_start, value_length);
return;
}
return;
}
- *value = g_strstr_len(value_start, 5, "true") ? TRUE : FALSE;
+ *value = g_strstr_len(value_start, value_length, "true") ? TRUE : FALSE;
return;
}