X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fnmemsdup.c;h=0fe7373d6064f5baacf922d89a992086255577c2;hp=016676c2a18eeeb7621f9a49d630fe4627e28aca;hb=3c03c66fdcf640bbf4c611a48bf8c74989d077f6;hpb=8d691989077a0addcbd840d769dce6700f3d9622 diff --git a/src/nmemsdup.c b/src/nmemsdup.c index 016676c..0fe7373 100644 --- a/src/nmemsdup.c +++ b/src/nmemsdup.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2008 Index Data * See the file LICENSE for details. - * - * $Id: nmemsdup.c,v 1.10 2007-01-03 08:42:15 adam Exp $ */ /** @@ -15,10 +13,7 @@ #endif #include -#include -#if YAZ_HAVE_XML2 -#include -#endif +#include char *nmem_strdup (NMEM mem, const char *src) { @@ -73,7 +68,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;