--- libaitio/src/Attic/array.c 2012/07/30 09:26:56 1.10.6.1 +++ libaitio/src/Attic/array.c 2012/07/30 10:55:51 1.10.6.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: array.c,v 1.10.6.1 2012/07/30 09:26:56 misho Exp $ +* $Id: array.c,v 1.10.6.2 2012/07/30 10:55:51 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -581,21 +581,21 @@ io_MakeAV(const char * __restrict csArgs, const char * * return: 0 error format; -1 error:: can`t read; >0 ok, number of readed items */ int -io_MakeAV2(char ** __restrict psArgs, const char *csDelim, +io_MakeAV2(char * __restrict psArgs, const char *csDelim, char * __restrict psAttr, char * __restrict psValue) { register int ret = 0; char *pos; - if (!psArgs || !*psArgs || !csDelim) + if (!psArgs || !csDelim) return -1; - pos = strpbrk(*psArgs, csDelim); + pos = strpbrk(psArgs, csDelim); if (pos) *pos++ = 0; ret++; if (psAttr) - psAttr = *psArgs; + psAttr = psArgs; if (psValue) { if (pos && *pos) {