diff options
-rw-r--r-- | handle.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -889,8 +889,16 @@ do_pointer(char *line, int len) } if (i > 0 && i != nbuttons) { - fprintf (stderr, "Warning: Only changing the first %d of %d buttons.\n", - i, nbuttons); + if (i < nbuttons) { + fprintf (stderr, + "Warning: Only changing the first %d of %d buttons.\n", + i, nbuttons); + } + else { /* i > nbuttons */ + fprintf (stderr, + "Warning: Not changing %d extra buttons beyond %d.\n", + i - nbuttons, nbuttons); + } i = nbuttons; } |