--- a/src/chess/pgn.c Wed Jun 04 23:56:40 2025 +0200
+++ b/src/chess/pgn.c Wed Jun 04 23:58:05 2025 +0200
@@ -116,7 +116,7 @@
do {
movestr[i++] = c;
if (i >= 10) {
- return 1;
+ return pgn_error_move_syntax;
}
} while (!isspace(c = fgetc(stream)));
movestr[i] = '\0';