Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranid committed Dec 10, 2006
1 parent c8a9d5f commit 41564ba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main.C
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <ctype.h>
#include <unistd.h>
#include <cassert>
#include <getopt.h>
#include <sys/stat.h>
#include "SerializePrxToIdc.h"
#include "SerializePrxToXml.h"
Expand Down Expand Up @@ -59,9 +58,9 @@ int do_serialize(const char *arg)

i = 0;
g_iSMask = 0;
while(optarg[i])
while(arg[i])
{
switch(tolower(optarg[i]))
switch(tolower(arg[i]))
{
case 'i' : g_iSMask |= SERIALIZE_IMPORTS;
break;
Expand All @@ -75,7 +74,7 @@ int do_serialize(const char *arg)
break;
default: COutput::Printf(LEVEL_WARNING,
"Unknown serialize option '%c'\n",
tolower(optarg[i]));
tolower(arg[i]));
return 0;
};
i++;
Expand Down

0 comments on commit 41564ba

Please sign in to comment.