diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-03-16 00:04:18 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-03-16 00:04:18 +0100 |
| commit | 133c8f28e9556f6cbe21a11e9901247df62919c0 (patch) | |
| tree | 0370bbaea6f3227da62d6b23d5882f947c4d674d | |
| parent | 4dd27e68b9b4f22a9657798448033db04f269b7d (diff) | |
Replaced snprintf() with msnprintf()
| -rw-r--r-- | FICS/movecheck.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FICS/movecheck.c b/FICS/movecheck.c index 3954f42..5d71182 100644 --- a/FICS/movecheck.c +++ b/FICS/movecheck.c @@ -39,6 +39,7 @@ #include "board.h" #include "common.h" #include "gamedb.h" +#include "maxxes-utils.h" #include "movecheck.h" #include "network.h" #include "playerdb.h" @@ -860,7 +861,7 @@ move_calculate(game_state_t *gs, move_t *mt, int promote) } // Replace this with an algabraic de-parser - snprintf(mt->algString, sizeof mt->algString, "%s", + msnprintf(mt->algString, sizeof mt->algString, "%s", alg_unparse(gs, mt)); fakeMove = *gs; execute_move(&fakeMove, mt, 0); // Calculates enPassant also |
