projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use libxml2 2.9.2/Libxslt 1.1.28 - part of YAZ-804
[yaz-moved-to-github.git]
/
src
/
nmemsdup.c
diff --git
a/src/nmemsdup.c
b/src/nmemsdup.c
index
aaa15c6
..
f72936a
100644
(file)
--- a/
src/nmemsdup.c
+++ b/
src/nmemsdup.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
* 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);
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;
}
dst[n] = '\0';
return dst;
}