[Mauiusers] Wrong initialization in main

Åke Sandgren ake.sandgren at hpc2n.umu.se
Mon Jan 16 03:22:08 MST 2006


Server.c main in ArgV strdup loop
  for (aindex = 0;aindex < ArgC;aindex++)
    {
    if ((ArgV[aindex] == NULL) || (aindex >= 1024))
      break;

    tmpArgV[0] = NULL;

    MUStrDup(&tmpArgV[aindex],ArgV[aindex]);
    }

  tmpArgV[aindex] = NULL;

===============
tmpArgV[0] = NULL; should be tmpArgV[aindex] = NULL;


More information about the mauiusers mailing list