diff -r 000000000000 -r 6f7a81934006 lib/courier-authlib/copyargv.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/courier-authlib/copyargv.c Wed Jan 16 22:39:43 2008 +0100 @@ -0,0 +1,40 @@ +/* +** Copyright 1998 - 1999 Double Precision, Inc. See COPYING for +** distribution information. +*/ + +#if HAVE_CONFIG_H +#include "config.h" +#endif +#include +#include +#include +#if HAVE_UNISTD_H +#include +#endif +#include "auth.h" + +static const char rcsid[]="$Id: copyargv.c,v 1.1 2000/04/13 17:55:05 bruce Exp $"; + +char **authcopyargv(int c, char **oldv, char **prog) +{ +char **v; +int n; + + if ((v=(char **)malloc(sizeof(char *)*(c+1))) == 0) + { + perror("malloc"); + authexit(1); + } + for (n=0; n