fix battleship input

This commit is contained in:
Benno Fünfstück 2020-02-06 17:03:26 +01:00
parent bd3ea26cfe
commit 19ce6f3d75

View file

@ -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';