« Previous | Next » 

Revision cae7be1a

IDcae7be1a60cd1642ecdbba16f059d976827612b4
Parent 4ccfe242
Child 53987e31

Added by Zi Shen Lim almost 7 years ago

mnexec: getopt bugfix

getopt returns an 'int', so use change datatype of 'c' to match it.
Otherwise, 'c' may hold a value of 255 (0xff), and fail the comparison
with -1 (0xffffffff): while ((c = getopt(...)) != -1)

This bug was uncovered on Ubuntu 13.04 running on ARM, using
arm-linux-gnueabihf-gcc4.7.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences