-/* $Id: zebrash.c,v 1.22 2003-09-23 10:09:38 adam Exp $
+/* $Id: zebrash.c,v 1.23 2003-11-21 15:30:16 heikki Exp $
Copyright (C) 2002,2003
Index Data Aps
static int cmd_select_database ( char *args[], WRBUF outbuff)
{
char *db=defarg(args[1],DEFAULTDATABASE);
- wrbuf_puts(outbuff,"Selecting database 'Default'\n");
+ wrbuf_printf(outbuff,"Selecting database '%s'\n",db);
return zebra_select_database(zh, db);
}
} else
wrbuf_printf(outbuff,"NO Record %d\n", recs[i].position);
}
- nextrecno=start+nrecs+1;
+ nextrecno=start+nrecs;
}
odr_destroy(odr);
return rc;