xdo
xdo copied to clipboard
Avoid segfault when x and y aren't given
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.