X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fnmemsdup.c;h=3126aac1bbecc93afaa2146b375dc9201160d2d1;hp=d3e6539259001bc37356f8c95ae920bed2c428a5;hb=94b1547e5951e1e01bf5180159e74095cd0527f4;hpb=2715f6522ca62ab5dbc886c21ed18945743216f0 diff --git a/src/nmemsdup.c b/src/nmemsdup.c index d3e6539..3126aac 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) 1995-2013 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; }