/* 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.
*/
/**
{
cp++;
no++;
- while (*cp != '=')
+ while (*cp && *cp != '=' && *cp != '&')
{
/* check that x-form names looks sane */
if (*cp <= ' ' || *cp >= 127)