xdo icon indicating copy to clipboard operation
xdo copied to clipboard

Avoid segfault when x and y aren't given

Open N-R-K opened this issue 2 years ago • 1 comments

N-R-K avatar Aug 20 '23 05:08 N-R-K

Also, using atoi is a bit poor since it cannot do proper error detection. So something invalid will just silently get converted to 0.

I'd recommend strtol with proper error checks.

N-R-K avatar Aug 20 '23 05:08 N-R-K