xrandr: stricter --scale argument parsing
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 16 Jul 2017 13:05:21 +0000 (15:05 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 16 Jul 2017 13:05:21 +0000 (15:05 +0200)
commit0fe4ff4d90e03e73cdff0cf03da662afc1f85733
treead2207f5495adc3a4546f2f1b4de9d6171d156f6
parentbf278e4d8e4850425e1fb9f9b3161d27c0ef1757
xrandr: stricter --scale argument parsing

We used to accept something like --scale 2x3junk as a valid input
(scaling x by 2 and y by 3), even though this isn't really a valid
scaling factor.

Fix by making sure there is nothing after the parsed number(s).

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
xrandr.c