Re: [Libosinfo] [libosinfo PATCH 2/4] media: Don't assume identifiers are null terminated

2019-02-14 Thread Christophe Fergeau
On Thu, Feb 14, 2019 at 11:05:39AM +0100, Fabiano Fidêncio wrote: > On Thu, Feb 14, 2019 at 10:57 AM Christophe Fergeau > wrote: > > > Hey, > > > > On Wed, Feb 13, 2019 at 08:19:25PM +0100, Fabiano Fidêncio wrote: > > > Identifiers as volume-id, application, publisher, and system are not > > >

Re: [Libosinfo] [libosinfo PATCH 2/4] media: Don't assume identifiers are null terminated

2019-02-14 Thread Fabiano Fidêncio
On Thu, Feb 14, 2019 at 10:57 AM Christophe Fergeau wrote: > Hey, > > On Wed, Feb 13, 2019 at 08:19:25PM +0100, Fabiano Fidêncio wrote: > > Identifiers as volume-id, application, publisher, and system are not > > null terminated and cannot be assumed as so. > > > > By assuming those are null

Re: [Libosinfo] [libosinfo PATCH 2/4] media: Don't assume identifiers are null terminated

2019-02-14 Thread Christophe Fergeau
Hey, On Wed, Feb 13, 2019 at 08:19:25PM +0100, Fabiano Fidêncio wrote: > Identifiers as volume-id, application, publisher, and system are not > null terminated and cannot be assumed as so. > > By assuming those are null terminated strings, libosinfo ends up not > counting the last character of a

[Libosinfo] [libosinfo PATCH 2/4] media: Don't assume identifiers are null terminated

2019-02-13 Thread Fabiano Fidêncio
Identifiers as volume-id, application, publisher, and system are not null terminated and cannot be assumed as so. By assuming those are null terminated strings, libosinfo ends up not counting the last character of a MAX_* string and, consequently, not properly identifying medias that have their