Package: ircd-hybrid
Version: 7.2.2.dfsg.2-3
Severity: important
Tags: patch



-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-amd64
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
--- ircd-hybrid-7.2.2.dfsg.2/src/getopt.c	2006-07-17 08:31:26.000000000 +0200
+++ ircd-hybrid-7.2.3/src/getopt.c	2007-02-28 05:17:46.000000000 +0100
@@ -19,7 +19,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: getopt.c 33 2005-10-02 20:50:00Z knight $
+ *  $Id: getopt.c 786 2006-08-27 08:48:04Z michael $
  */
 
 #include "stdinc.h"
@@ -78,6 +78,8 @@
 		    }
 		  
 		  *((int *)opts[i].argloc) = atoi((*argv)[1]);
+            (*argc)--;
+            (*argv)++;
 		  break;
 		case STRING:
 		  if (*argc < 2)
@@ -89,6 +91,8 @@
 		  
 		  *((char**)opts[i].argloc) = malloc(strlen((*argv)[1]) + 1);
 		  strcpy(*((char**)opts[i].argloc), (*argv)[1]);
+            (*argc)--;
+            (*argv)++;
 		  break;
 
 		case USAGE:

Reply via email to