X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fnmemsdup.c;fp=src%2Fnmemsdup.c;h=95f182c461d9b45c3e40b6d6cfcc7f2d426ce89b;hp=016676c2a18eeeb7621f9a49d630fe4627e28aca;hb=fe507b6b15788a3a8e58063d9dae52532a5229a5;hpb=b8ab484f71da48a13342fff3ebd60efd23504681 diff --git a/src/nmemsdup.c b/src/nmemsdup.c index 016676c..95f182c 100644 --- a/src/nmemsdup.c +++ b/src/nmemsdup.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: nmemsdup.c,v 1.10 2007-01-03 08:42:15 adam Exp $ + * $Id: nmemsdup.c,v 1.11 2007-05-06 20:12:20 adam Exp $ */ /** @@ -15,10 +15,7 @@ #endif #include -#include -#if YAZ_HAVE_XML2 -#include -#endif +#include char *nmem_strdup (NMEM mem, const char *src) { @@ -73,7 +70,7 @@ void nmem_strsplit(NMEM nmem, const char *delim, const char *dstr, else { size_t i = 0; - *darray = nmem_malloc(nmem, *num * sizeof(**darray)); + *darray = (char **) nmem_malloc(nmem, *num * sizeof(**darray)); for (cp = dstr; *cp; ) { const char *cp0;