Null terminate execl's argument list.

Submitted by: Ron Lenk <rlenk@widget.xmission.com>
This commit is contained in:
Justin T. Gibbs 1996-01-05 01:48:07 +00:00
parent 74b48c1de1
commit 67e73a53fc
3 changed files with 6 additions and 6 deletions

View File

@ -43,7 +43,7 @@
* are token separators.
*
*-M*************************************************************************/
static char id[] = "$Id: aic7xxx_asm.c,v 1.9 1995/05/30 07:57:33 rgrimes Exp $";
static char id[] = "$Id: aic7xxx_asm.c,v 1.10 1996/01/03 06:25:31 gibbs Exp $";
#include <ctype.h>
#include <stdio.h>
#include <string.h>
@ -679,7 +679,7 @@ main(int argc, char **argv)
}
close(ifile);
}
execl("/usr/bin/cpp", "/usr/bin/cpp", "-P", "-", "-");
execl("/usr/bin/cpp", "/usr/bin/cpp", "-P", "-", "-", NULL);
}
return(EXIT_SUCCESS);
}

View File

@ -43,7 +43,7 @@
* are token separators.
*
*-M*************************************************************************/
static char id[] = "$Id: aic7xxx_asm.c,v 1.9 1995/05/30 07:57:33 rgrimes Exp $";
static char id[] = "$Id: aic7xxx_asm.c,v 1.10 1996/01/03 06:25:31 gibbs Exp $";
#include <ctype.h>
#include <stdio.h>
#include <string.h>
@ -679,7 +679,7 @@ main(int argc, char **argv)
}
close(ifile);
}
execl("/usr/bin/cpp", "/usr/bin/cpp", "-P", "-", "-");
execl("/usr/bin/cpp", "/usr/bin/cpp", "-P", "-", "-", NULL);
}
return(EXIT_SUCCESS);
}

View File

@ -43,7 +43,7 @@
* are token separators.
*
*-M*************************************************************************/
static char id[] = "$Id: aic7xxx_asm.c,v 1.9 1995/05/30 07:57:33 rgrimes Exp $";
static char id[] = "$Id: aic7xxx_asm.c,v 1.10 1996/01/03 06:25:31 gibbs Exp $";
#include <ctype.h>
#include <stdio.h>
#include <string.h>
@ -679,7 +679,7 @@ main(int argc, char **argv)
}
close(ifile);
}
execl("/usr/bin/cpp", "/usr/bin/cpp", "-P", "-", "-");
execl("/usr/bin/cpp", "/usr/bin/cpp", "-P", "-", "-", NULL);
}
return(EXIT_SUCCESS);
}