File: xbprotosan.patch

package info (click to toggle)
sjeng 11.2-15.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,444 kB
  • sloc: ansic: 13,378; sh: 324; makefile: 29
file content (16 lines) | stat: -rw-r--r-- 602 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Author: Jotam Jr. Trejo <jotamjr@debian.org.sv>
Description: Initialize type_to_char table to only upper-case characters,
             this to comply the xboard version 2 protocol, related to
	     SAN notation.
Closes: 539718.
--- a/utils.c
+++ b/utils.c
@@ -313,7 +313,7 @@
   int prom, from, target, f_rank, t_rank, converter;
   char f_file, t_file;
 
-  char type_to_char[] = { 'F', 'P', 'p', 'N', 'n', 'K', 'k', 'R', 'r', 'Q', 'q', 'B', 'b', 'E' };
+  char type_to_char[] = { 'F', 'P', 'P', 'N', 'N', 'K', 'K', 'R', 'R', 'Q', 'Q', 'B', 'B', 'E' };
 
   prom = move.promoted;
   from = move.from;