X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fnmemsdup.c;h=f72936a524c9146bca8e89d2a9dd015f359c2a99;hp=d3e6539259001bc37356f8c95ae920bed2c428a5;hb=7d640b3f9eeb46ab57958aa21b63f26271162ee7;hpb=2715f6522ca62ab5dbc886c21ed18945743216f0 diff --git a/src/nmemsdup.c b/src/nmemsdup.c index d3e6539..f72936a 100644 --- a/src/nmemsdup.c +++ b/src/nmemsdup.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ @@ -33,7 +33,7 @@ char *nmem_strdup_null(NMEM mem, const char *src) char *nmem_strdupn(NMEM mem, const char *src, size_t n) { char *dst = (char *) nmem_malloc(mem, n+1); - memcpy (dst, src, n); + memcpy(dst, src, n); dst[n] = '\0'; return dst; }