<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - module zeroconf-discover doesn't detect all sinks on the remote / fails to construct the name for remote sink"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94740#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - module zeroconf-discover doesn't detect all sinks on the remote / fails to construct the name for remote sink"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94740">bug 94740</a>
from <span class="vcard"><a class="email" href="mailto:superquad.vortex2@gmail.com" title="Raymond <superquad.vortex2@gmail.com>"> <span class="fn">Raymond</span></a>
</span></b>
<pre>do the length exceed PA_NAME_MAX ?
#define PA_NAME_MAX 128
static bool is_valid_char(char c) {
return
(c >= 'a' && c <= 'z') ||
(c >= 'A' && c <= 'Z') ||
(c >= '0' && c <= '9') ||
c == '.' ||
c == '-' ||
c == '_';
}
bool pa_namereg_is_valid_name(const char *name) {
const char *c;
pa_assert(name);
if (*name == 0)
return false;
for (c = name; *c && (c-name < PA_NAME_MAX); c++)
if (!is_valid_char(*c))
return false;
if (*c)
return false;
return true;
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>