Re: [PATCH xrandr 2/2] xrandr: stricter --scale argument parsing

2017-05-17 Thread walter harms
Am 17.05.2017 18:30, schrieb Giuseppe Bilotta: > 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: Giusep

[PATCH xrandr 2/2] xrandr: stricter --scale argument parsing

2017-05-17 Thread Giuseppe Bilotta
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 --- xrandr.c | 5 +++-- 1 file changed, 3 insertio