fix battleship input
This commit is contained in:
parent
bd3ea26cfe
commit
19ce6f3d75
|
@ -85,7 +85,7 @@ struct position read_position(void) {
|
|||
|
||||
struct position position;
|
||||
char col;
|
||||
sscanf("%c%d", &col, &position.y);
|
||||
sscanf(line, "%c%d", &col, &position.y);
|
||||
free(line);
|
||||
|
||||
position.x = tolower(col) - 'a';
|
||||
|
|
Loading…
Reference in a new issue