--- ray/src/common/expandarg.c 2003/06/27 06:53:21 2.7 +++ ray/src/common/expandarg.c 2003/06/30 14:59:11 2.8 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: expandarg.c,v 2.7 2003/06/27 06:53:21 greg Exp $"; +static const char RCSid[] = "$Id: expandarg.c,v 2.8 2003/06/30 14:59:11 schorsch Exp $"; #endif /* * Get additional command arguments from file or environment. @@ -9,11 +9,12 @@ static const char RCSid[] = "$Id: expandarg.c,v 2.7 20 #include "copyright.h" -#include "rtio.h" +#include +#include +#include "rtio.h" #include "rtmisc.h" -#include #define MAXARGEXP 512 /* maximum argument expansion */ @@ -50,11 +51,11 @@ int n; if (newav == NULL) return(-1); /* copy preceeding arguments */ - bcopy((void *)*avp, (void *)newav, n*sizeof(char *)); + memcpy((void *)newav, (void *)*avp, n*sizeof(char *)); /* copy expanded argument */ - bcopy((void *)ave, (void *)(newav+n), ace*sizeof(char *)); + memcpy((void *)(newav+n), (void *)ave, ace*sizeof(char *)); /* copy trailing arguments + NULL */ - bcopy((void *)(*avp+n+1), (void *)(newav+n+ace), (*acp-n)*sizeof(char *)); + memcpy((void *)(newav+n+ace), (void *)(*avp+n+1), (*acp-n)*sizeof(char *)); /* free old list */ bfree((char *)*avp, (*acp+1)*sizeof(char *)); /* assign new list */