X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fw32spawn.h;h=18c78242ef361ece57a942dea219129bc2b3bc70;hb=ccd54782ae73477aa3f3987ab04db9e6fde025d6;hp=de0325e492bd5cfd7b50807a33da16f742a1f714;hpb=267a39bafd249d7eb9c37df06dc6defcf41cb343;p=gnulib.git diff --git a/lib/w32spawn.h b/lib/w32spawn.h index de0325e49..18c78242e 100644 --- a/lib/w32spawn.h +++ b/lib/w32spawn.h @@ -1,5 +1,5 @@ /* Auxiliary functions for the creation of subprocesses. Native Woe32 API. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify @@ -24,9 +24,9 @@ #include #include +#include #include -#include "strpbrk.h" #include "xalloc.h" /* Duplicates a file handle, making the copy uninheritable. */ @@ -92,7 +92,7 @@ prepare_spawn (char **argv) ; /* Allocate new argument vector. */ - new_argv = (char **) xmalloc ((argc + 1) * sizeof (char *)); + new_argv = XNMALLOC (argc + 1, char *); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++)