Package: fairymax
Version: 4.8v-1
Severity: important
Tags: patch, fixed-upstream

Fairymax is currently unusable on platforms with unsigned char.
(Reproduced on armhf and armel.)

Upstream commit acdf13db...

When fgetc is assigned to a char, the code for EOF is clipped, and
not recognized in a comparison when it is not sign-extended. Using an
int (as should have been done in the first place to make the recognition
of EOF unique) now solves this.

--- fairymax-4.8v/fairymax.c	2016-05-21 08:45:51.000000000 +0200
+++ fairymax-4.8v-patched/fairymax.c	2016-05-21 08:33:03.613590765 +0200
@@ -431,7 +431,7 @@
                                          
 void PrintVariants(int combo)
 {
-        int count=0, total=0; char c=EOF+1, buf[80];
+        int count=0, total=0, c=EOF+1; char buf[80];
         FILE *f;
 
         f = fopen(INI_FILE, "r");

Reply via email to