[media] ati_remote: avoid fragile snprintf use
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Tue, 8 Mar 2016 20:40:53 +0000 (17:40 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 7 May 2016 13:27:16 +0000 (10:27 -0300)
commit869f076bd68b27e0990e3fc5036a8eb571014473
tree1b1f0b233d468458e54a9b660b25a96d35b2ff7a
parente57b36c0c46d7288d6d5bd602003b8fcd17efe3f
[media] ati_remote: avoid fragile snprintf use

Passing overlapping source and destination to snprintf is
fragile. Replace with a single (mostly) equivalent call. If one wants
to preserve the space preceding udev->product whether or not there was
a manufacturer, just remove udev->manufacturer from the && expression.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/ati_remote.c