sprintf(buf, "L%d,%d", tx, ty);
return dupstr(buf);
} else if (button == LEFT_BUTTON || button == RIGHT_BUTTON) {
+ char buf[80];
/*
* The left and right buttons have no effect if clicked on a
* Otherwise, turn the tile one way or the other. Left button
* turns anticlockwise; right button turns clockwise.
*/
- char buf[80];
sprintf(buf, "%c%d,%d", (button == LEFT_BUTTON ? 'A' : 'C'), tx, ty);
return dupstr(buf);
} else if (button == 'J') {