-/* $Id: d1_absyn.c,v 1.22 2006-02-06 23:22:28 adam Exp $
+/* $Id: d1_absyn.c,v 1.24 2006-05-10 08:13:17 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
{
const char *p = expr;
int abs = 1;
- int i;
int e = 0;
char *stack[32];
char *res_p, *res = 0;
res_p = res = nmem_malloc(data1_nmem_get(dh), res_size + 10);
if (stack[e-1][0] == '@') /* path/@attr spec (leaf is attribute) */
- sprintf(res_p, "/");
+ strcpy(res_p, "/");
else
- sprintf(res_p, "[^@]*/"); /* path .. (index all cdata below it) */
+ strcpy(res_p, "[^@]*/"); /* path .. (index all cdata below it) */
res_p = res_p + strlen(res_p);
while (--e >= 0) {
sprintf(res_p, "%s/", stack[e]);
yaz_log(YLOG_DEBUG, "%s: data1_read_absyn end", file);
return res;
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+