/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) 1995-2013 Index Data
* See the file LICENSE for details.
*/
/**
for (cp = path; *cp && *cp != '=' && *cp != '&'; cp++)
;
- (*name)[no] = (char *) odr_malloc(o, (cp-path)+1);
- memcpy((*name)[no], path, cp-path);
- (*name)[no][cp-path] = '\0';
-
+ (*name)[no] = odr_strdupn(o, path, cp - path);
path = cp;
if (*path == '=')
{