Debian Bug report logs - #472315
improper getopt() usage

version graph

Package: barrage; Maintainer for barrage is Debian Games Team <>; Source for barrage is src:barrage.

Reported by: Ulrich Eckhardt <>

Date: Sun, 23 Mar 2008 12:12:01 UTC

Severity: normal

Found in version barrage/1.0.2-1

Fixed in version barrage/1.0.2-2

Done: Barry deFreese <>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to, Debian Games Team <>:
Bug#472315; Package barrage. Full text and rfc822 format available.

Acknowledgement sent to Ulrich Eckhardt <>:
New Bug report received and forwarded. Copy sent to Debian Games Team <>. Full text and rfc822 format available.

Message #5 received at (full text, mbox):

From: Ulrich Eckhardt <>
Subject: improper getopt() usage
Date: Sun, 23 Mar 2008 12:55:40 +0100
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.


Reply sent to Barry deFreese <>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Ulrich Eckhardt <>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #10 received at (full text, mbox):

From: Barry deFreese <>
Subject: Bug#472315: fixed in barrage 1.0.2-2
Date: Sun, 30 Mar 2008 18:17:03 +0000
Source: barrage
Source-Version: 1.0.2-2

We believe that the bug you reported is fixed in the latest version of
barrage, which is due to be installed in the Debian FTP archive:

  to pool/main/b/barrage/barrage_1.0.2-2.diff.gz
  to pool/main/b/barrage/barrage_1.0.2-2.dsc
  to pool/main/b/barrage/barrage_1.0.2-2_amd64.deb

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Barry deFreese <> (supplier of updated barrage package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing

Hash: SHA1

Format: 1.7
Date: Sun, 30 Mar 2008 01:15:36 -0400
Source: barrage
Binary: barrage
Architecture: source amd64
Version: 1.0.2-2
Distribution: unstable
Urgency: low
Maintainer: Debian Games Team <>
Changed-By: Barry deFreese <>
 barrage    - Rather violent action game
Closes: 449328 472315
 barrage (1.0.2-2) unstable; urgency=low
   [ Gonéri Le Bouder ]
   * copright file:
    - update Debian Games Team home URL
    - change name from pkg-games to Debian Games Team
    - add the year 2003 in the copyright line
   * if nostrip is set in DEB_BUILD_OPTIONS it's useless to do:
     INSTALL_PROGRAM += -s since dh_strip already do the job
   * adds build depends on binutils (>=, according to dh_strip
   [ Eddy Petrișor ]
   * Fix Homepage semi URL
   [ Jon Dowland ]
   * update menu section to "Games/Action" for menu transition
     (thanks Linas Žvirblis)
   [ Cyril Brulebois ]
   * Added Vcs-Svn and Vcs-Browser fields in the control file.
   [ Barry deFreese ]
   * Fix make clean lintian warning.
   * Bump to Standards Version 3.7.3.
     + Menu policy transition.
   * Add quilt patch system.
   * 01_getopt.diff - (Closes: #472315).
     + Return int from getopt, not char.
   * 02_nosound.diff - (Closes: #449328).
     + If no sound card, disable sound and continue.
   * Add myself to uploaders.
   * Remove Homepage from package description.
   [ Jon Dowland ]
   * add Homepage: control field to source stanza
 0f7db7e0288c3c90d2c8fb8b651e17c0 963 games optional barrage_1.0.2-2.dsc
 3321de540597f0cca1e49a1243979a79 28762 games optional barrage_1.0.2-2.diff.gz
 6ec9433c7c17db47a1d36b5cc73532c5 413004 games optional barrage_1.0.2-2_amd64.deb

Version: GnuPG v1.4.6 (GNU/Linux)


Bug archived. Request was from Debbugs Internal Request <> to (Sun, 01 Jun 2008 07:28:26 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.

Debian bug tracking system administrator <>. Last modified: Wed Apr 16 19:55:36 2014; Machine Name:

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.