Fix term counters to be of type zint. Fix several printfs of zint.
[idzebra-moved-to-github.git] / recctrl / recgrs.c
index 49fdf91..d0774b0 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: recgrs.c,v 1.85 2003-10-07 09:18:21 adam Exp $
+/* $Id: recgrs.c,v 1.87 2004-08-06 12:55:03 adam Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003
    Index Data Aps
 
@@ -107,6 +107,7 @@ static void *grs_init(RecType recType)
 #if HAVE_PERL
     grs_add_handler (h, recTypeGrs_perl);
 #endif
+    grs_add_handler (h, recTypeGrs_danbib);
     return h;
 }
 
@@ -1045,7 +1046,7 @@ static int grs_retrieve(void *clientData, struct recRetrieveCtrl *p)
        dnew->u.data.what = DATA1I_text;
        dnew->u.data.data = dnew->lbuf;
         
-       sprintf(dnew->u.data.data, "%d", p->localno);
+       sprintf(dnew->u.data.data, ZINT_FORMAT, p->localno);
        dnew->u.data.len = strlen(dnew->u.data.data);
     }
 #if 0