X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fnmemsdup.c;h=f72936a524c9146bca8e89d2a9dd015f359c2a99;hp=b0ea60248a084affabb1feda6f36abd1b457e9aa;hb=240156e69d3a6390699644756e367fffd42891d1;hpb=0c46d2e66bdeea1600e700124a81a5d0a65d349e diff --git a/src/nmemsdup.c b/src/nmemsdup.c index b0ea602..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-2013 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; }