-/* $Id: d1_absyn.c,v 1.9.2.6 2006-02-06 23:16:03 adam Exp $
+/* $Id: d1_absyn.c,v 1.9.2.7 2006-02-07 00:22:25 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
*res_p = '\0';
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]);
-/* $Id: recgrs.c,v 1.86.2.8 2006-02-06 23:16:03 adam Exp $
+/* $Id: recgrs.c,v 1.86.2.9 2006-02-07 00:22:25 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003
Index Data Aps
if (s->rule_no)
return 1;
/* next char */
+ if (!c)
+ return 0;
c = *p++;
for (t = s->trans, i = s->tran_no; --i >= 0; t++)
if (c >= t->ch[0] && c <= t->ch[1])