* Z39.50 API for the Email gateway - YAZ version
*
* $Log: zaccess.c,v $
- * Revision 1.3 1995/07/20 08:18:15 adam
+ * Revision 1.4 1995/07/28 10:51:34 adam
+ * Bug fix: multiple databases weren't specified correctly.
+ *
+ * Revision 1.3 1995/07/20 08:18:15 adam
* Bug fix: Multiple databases are separated by commas and NOT by space.
*
* Revision 1.2 1995/07/05 11:08:33 adam
more = 1;
else
more = 0;
- *p = '\0';
if (p - databases)
{
req->databaseNames[req->num_databaseNames] = odr_malloc(a->encode,
(p - databases) + 1);
- strcpy(req->databaseNames[req->num_databaseNames++], databases);
+ memcpy(req->databaseNames[req->num_databaseNames], databases,
+ p-databases);
+ req->databaseNames[req->num_databaseNames++][p-databases] = '\0';
}
databases = p + more;
}