Date: Tue, 24 Jul 2018 11:52:07 +0200 From: Hans Petter Selasky <hps@selasky.org> To: =?UTF-8?Q?Goran_Meki=c4=87?= <meka@tilda.center> Cc: freebsd-multimedia@freebsd.org Subject: Re: jack_umidi client name too long Message-ID: <fc64927b-3434-6572-63ab-e4f7bed4844d@selasky.org> In-Reply-To: <20180720131057.h2zhpyaoigf2utsk@hal9000.cicici.home> References: <20180614224209.huk5nusli4m5ngqn@hal9000.cicici.home> <2cd19236-1475-e374-9427-27dfdfc7ca2c@ShaneWare.Biz> <20180615084612.e6af43xzxx4nmypj@hal9000.cicici.home> <2a838efe-7954-4f39-323e-603135e48cc6@ShaneWare.Biz> <20180616171340.oyuyj4r25ehih3xc@thinker.my.domain> <53dbe3eb-4cef-bb84-1502-e69d8816bfef@selasky.org> <20180617101158.c7xx7gigtnz2xx2s@hal9000.cicici.home> <144fd724-ff71-7b30-a71a-5a370e391ca6@selasky.org> <d07851f3-09ba-7445-f6f8-760d5920c4b2@selasky.org> <96c1b29f-fa12-0fb5-95f5-18b37e8f09a4@selasky.org> <20180720131057.h2zhpyaoigf2utsk@hal9000.cicici.home>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fc64927b-3434-6572-63ab-e4f7bed4844d>