Bug#472315: improper getopt() usage

Ulrich Eckhardt doomster at knuut.de
Sun Mar 23 11:55:40 UTC 2008


Package: barrage
Version: 1.0.2-1

In main(), there is 

  char c;

  while( (c=getopt(..)) != -1)

which falsely assumes that char is signed. Just replace 'char c' with 'int c' 
and it will work on platforms where that is not the case, like PPC.

Uli





More information about the Pkg-games-devel mailing list