X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fodr_util.c;h=7a07775ac5230839ac7452ebacc292ff77266eb5;hb=11fc1fa1b5e4b75942018efe466dbfdb41454077;hp=d399f9e5b0f0f590f729de49533b36902345b9bc;hpb=e02b5659eaac4f86f7bf97779a5f0dcf9f6bf86a;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; }