jack_umidi client name too long
Goran Mekić
meka at tilda.center
Fri Jul 20 13:11:17 UTC 2018
On Thu, Jul 05, 2018 at 10:52:46AM +0200, Hans Petter Selasky wrote:
> On 07/05/18 10:35, Hans Petter Selasky wrote:
> Can you try this patch:
>
> Index: jack_umidi.c
> ===================================================================
> --- jack_umidi.c (revision 4048)
> +++ jack_umidi.c (working copy)
> @@ -651,6 +651,11 @@
> size = ptr - devname;
> *ptr = 0;
> }
> + /* limit the string length */
> + if (strlen(devname) > 16) {
> + devname[16] = 0;
> + size = 16;
> + }
> /* append port number */
> snprintf(devname + size, sizeof(devname) - size,
> " #%d", subunit);
>
>
Hello,
Sorry for late reply, vacation had priority interupt :o)
It works like a charm. I guess you'll submit it to ports? In any case,
thank you very much for this work!
Regards,
meka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-multimedia/attachments/20180720/7c739bda/attachment.sig>
More information about the freebsd-multimedia
mailing list