[media] si4713: si4713_set_rds_radio_text overwrites terminating \0
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 15 Oct 2013 15:24:45 +0000 (12:24 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 18 Dec 2013 08:40:30 +0000 (06:40 -0200)
commit8aab72bb0797321c6f6867f240da1e8c28bf040c
treedcfa63fee5ec3857439b0412c0b671c4f1ab0013
parentcc6d618fdf56df389e46be2f0c9f2d1579d8b9e6
[media] si4713: si4713_set_rds_radio_text overwrites terminating \0

si4713_set_rds_radio_text will overwrite the terminating zero at the
end of the rds radio text string in order to send out a carriage return
as per the RDS spec.
Use a separate char buffer for the CR instead of corrupting the control
string.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Tested-by: Eduardo Valentin <edubezval@gmail.com>
Acked-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/radio/si4713/si4713.c