X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fodr_util.c;h=7a07775ac5230839ac7452ebacc292ff77266eb5;hb=9e1a8a0a598aef894f59fa8abe3ccb144a5294a8;hp=d399f9e5b0f0f590f729de49533b36902345b9bc;hpb=d4081206ab9bd0ed0c97c032d264ad1e1d4a051e;p=yaz-moved-to-github.git diff --git a/odr/odr_util.c b/odr/odr_util.c index d399f9e..7a07775 100644 --- a/odr/odr_util.c +++ b/odr/odr_util.c @@ -5,8 +5,11 @@ char *odr_indent(ODR o) { static char buf[512]; + int i = o->indent; memset(buf, ' ', 512); + if (i >= 128) + i = 127; buf[o->indent * 4] = 0; return buf; }