jack_umidi client name too long
Hans Petter Selasky
hps at selasky.org
Tue Jul 24 09:52:29 UTC 2018
On 07/20/18 15:10, Goran Mekić wrote:
> 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!
https://www.freshports.org/audio/jack_umidi/
--HPS
More information about the freebsd-multimedia
mailing list