Minor changes in Debug log messages
[idzebra-moved-to-github.git] / recctrl / recgrs.c
index c024bd4..9b6cc84 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: recgrs.c,v 1.74 2003-02-20 21:13:37 adam Exp $
+/* $Id: recgrs.c,v 1.76 2003-04-24 19:34:19 adam Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003
    Index Data Aps
 
@@ -214,7 +214,7 @@ data1_termlist *xpath_termlist_by_tagpath(char *tagpath, data1_node *n)
     struct xpath_location_step *xp;
 
 #endif
-    char *pexpr = malloc(strlen(tagpath)+2);
+    char *pexpr = xmalloc(strlen(tagpath)+2);
     int ok = 0;
     
     sprintf (pexpr, "%s\n", tagpath);
@@ -279,6 +279,8 @@ data1_termlist *xpath_termlist_by_tagpath(char *tagpath, data1_node *n)
        }
         xpe = xpe->next;
     } 
+
+    xfree(pexpr);
     
     if (ok) {
       logf(LOG_DEBUG,"Got it");
@@ -561,10 +563,10 @@ static void index_termlist (data1_node *par, data1_node *n,
                       tlist->att->name, tlist->att->value,
                       tlist->source);
                printf (" data=\"");
-               for (i = 0; i<wrd->length && i < 8; i++)
+               for (i = 0; i<wrd->length && i < 40; i++)
                    fputc (wrd->string[i], stdout);
                fputc ('"', stdout);
-               if (wrd->length > 8)
+               if (wrd->length > 40)
                    printf (" ...");
                fputc ('\n', stdout);
            }