X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fber_oct.c;h=9c8eda4ca123c32ec58b328c2c39b4a9eb2c2eae;hb=afff2d64ae8758642c8e88bfebff9c00a982daa4;hp=2169842fd4451437a8df0f6d0e3df2bb03a7966c;hpb=41f4b2c49b60cf5f9ae896b537211ae830c39a55;p=yaz-moved-to-github.git diff --git a/odr/ber_oct.c b/odr/ber_oct.c index 2169842..9c8eda4 100644 --- a/odr/ber_oct.c +++ b/odr/ber_oct.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: ber_oct.c,v $ - * Revision 1.5 1995-03-08 12:12:10 quinn + * Revision 1.6 1995-03-17 10:17:41 quinn + * Added memory management. + * + * Revision 1.5 1995/03/08 12:12:10 quinn * Added better error checking. * * Revision 1.4 1995/02/10 15:55:28 quinn @@ -54,7 +57,7 @@ int ber_octetstring(ODR o, Odr_oct *p, int cons) } if (len + 1 > p->size - p->len) { - c = nalloc(o, p->size += len + 1); + c = odr_malloc(o, p->size += len + 1); if (p->len) memcpy(c, p->buf, p->len); p->buf = c;