• Malcolm Priestley's avatar
    [media] DM04/QQBOX Frontend attach change · 75aecc3a
    Malcolm Priestley authored
    On Fri, 2010-12-03 at 09:32 -0200, Mauro Carvalho Chehab wrote:
    > Em 27-11-2010 11:13, Malcolm Priestley escreveu:
    > > Driver Version v1.73 - Frontend attach change.
    > > To stop double rc registration in multi tuner environment or firmware change.
    > >
    > > Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
    > >
    > >
    > > +static int lme_name(struct dvb_usb_adapter *adap)
    > > +{
    > > +	struct lme2510_state *st = adap->dev->priv;
    > > +	const char *desc = adap->dev->desc->name;
    > > +	char *fe_name[] = {"", " LG TDQY-P001F", " SHARP:BS2F7HZ7395"};
    > > +	char *name = adap->fe->ops.info.name;
    > > +
    > > +	strcpy(name, desc);
    > > +	strcat(name, fe_name[st->tuner_config]);
    >
    > Please use, instead, strlcpy/strlcat, to avoid writing outside the buffer size.
    >
    
    Driver Version v1.74
    Amended patch with change to strlcpy/strlcat.
    Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
    75aecc3a
lmedm04.c 24.5 KB