subreader: fix unsafe sscanf calls with "%["
commit5cb9aac3da98c92c75eb2099265d2825bd1445ef
authorUoti Urpala <uau@mplayer2.org>
Sat, 20 Apr 2013 20:44:45 +0000 (20 23:44 +0300)
committerUoti Urpala <uau@mplayer2.org>
Sat, 20 Apr 2013 23:47:05 +0000 (21 02:47 +0300)
tree2675271a7f653c867655a6d52dcf0425c501d9cf
parent7b71123772fd66e76b313e81e840434d60ffaf0e
subreader: fix unsafe sscanf calls with "%["

"%[,.:]" conversion was used with a buffer that could be shorter than
the matched string. Suppress assignment of the conversion since the
value wasn't used anyway, and also limit match length to 1 as it
doesn't look like the intent was to match longer runs of the
characters.
sub/subreader.c