Name: pulseaudio-modules-tizen
Summary: Pulseaudio modules for Tizen
-Version: 15.0.78
+Version: 15.0.79
Release: 0
Group: Multimedia/Audio
License: LGPL-2.1+
strncpy(key, token, delimiter_ptr - token);
value = delimiter_ptr + 1;
pa_log_debug("key(%s), value(%s)", key, value);
- if (!strncmp(key, "call-type", strlen("call-type")))
+ if (pa_safe_streq(key, "call-type"))
pa_strlcpy(call_type, value, MAX_CALL_PARAM_SIZE);
- else if (!strncmp(key, "call-domain", strlen("call-domain")))
+ else if (pa_safe_streq(key, "call-domain"))
pa_strlcpy(call_domain, value, MAX_CALL_PARAM_SIZE);
- else if (!strncmp(key, "network-band", strlen("network-band")))
+ else if (pa_safe_streq(key, "network-band"))
pa_strlcpy(network_band, value, MAX_CALL_PARAM_SIZE);
else
pa_log_warn("not supported key(%s)", key);
while ((param_element = pa_split(f->parameters, " ", &split_state))) {
len = strlen(result_buf);
- if (!strncmp(param_element, control_element, strlen(control_element))) {
+ if (pa_safe_streq(param_element, control_element)) {
for (i = 0; i < f->n_controls; i++) {
c_len = strlen(control_values);
pa_snprintf(control_values + c_len, MAX_ELEMENT_LENGTH - c_len,
/* convert dB volume to linear volume */
double *vol_value = pa_xmalloc0(sizeof(double));
*vol_value = 0.0f;
- if (strncmp(token, "0", strlen(token)))
+ if (!pa_safe_streq(token, "0"))
*vol_value = pow(10.0, (atof(token) - 100) / 20.0);
if (!v->values[STREAM_DIRECTION_OUT].idx_volume_values)
v->values[STREAM_DIRECTION_OUT].idx_volume_values = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
idx = vitem->prefix;
- if (!strncmp(vconf_keynode_get_name(key), vconf_prefix[idx], strlen(vconf_prefix[idx]))) {
+ if (pa_safe_streq(vconf_keynode_get_name(key), vconf_prefix[idx])) {
snprintf(buf, sizeof(buf), "%c%s", vitem->opcode, vconf_keynode_get_name(key));
fprintf(stdout, "%s%c", buf, 0); /* Send opcode + key + '\0'. */