From: Adam Dickmeiss Date: Thu, 28 Apr 2005 13:33:20 +0000 (+0000) Subject: Fixed set_param_int (did not append properly) X-Git-Tag: snippet.version.1~69 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=ec0e8763c676e67054d9813b043ba9c5384a57ca Fixed set_param_int (did not append properly) --- diff --git a/recctrl/xslt.c b/recctrl/xslt.c index 421a307..370a169 100644 --- a/recctrl/xslt.c +++ b/recctrl/xslt.c @@ -1,4 +1,4 @@ -/* $Id: xslt.c,v 1.2 2005-04-28 12:34:21 adam Exp $ +/* $Id: xslt.c,v 1.3 2005-04-28 13:33:20 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -59,6 +59,8 @@ static void set_param_int(const char **params, const char *name, zint value, ODR odr) { char *quoted = odr_malloc(odr, 30); /* 25 digits enough for 2^64 */ + while (*params) + params++; sprintf(quoted, "'" ZINT_FORMAT "'", value); params[0] = name; params[1] = quoted;