From: Carl Worth <cworth@cworth.org>
Date: Mon, 3 Mar 2008 20:03:02 +0000 (-0800)
Subject: Allow leading whitespace for move string
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=2c55b6eb0de3e66b2c181e05dfee8bfb2d599baf;p=loudgame

Allow leading whitespace for move string
---

diff --git a/loa-board.c b/loa-board.c
index e630519..b4d13bc 100644
--- a/loa-board.c
+++ b/loa-board.c
@@ -71,7 +71,7 @@ loa_move_init_from_string (loa_move_t *move, const char *string)
     move->y2 = 0;
     move->is_capture = 0;
 
-    matched = sscanf (string, "%c%d%c%c%d", &xc1, &y1, &sep, &xc2, &y2);
+    matched = sscanf (string, " %c%d%c%c%d", &xc1, &y1, &sep, &xc2, &y2);
     if (matched != 5)
 	return FALSE;