69 elem = elem->next; |
69 elem = elem->next; |
70 free(cur); |
70 free(cur); |
71 }; |
71 }; |
72 } |
72 } |
73 |
73 |
74 /* MUST be called BEFORE applying a move to work correctly */ |
74 /* MUST be called BETWEEN validating AND applying a move to work correctly */ |
75 static void format_move(GameState *gamestate, Move *move) { |
75 static void format_move(GameState *gamestate, Move *move) { |
76 char *string = &(move->string[0]); |
76 char *string = &(move->string[0]); |
77 |
77 |
78 /* at least 8 characters should be available, wipe them out */ |
78 /* at least 8 characters should be available, wipe them out */ |
79 memset(string, 0, 8); |
79 memset(string, 0, 8); |