X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Ffmt_addr.c;h=be9b48390b02bf9abb51a772d2ee63acbc547f6d;hb=ab7b48411962d26439f92f35ed084d3d6275459c;hp=97f4271e5edf7037aab5c1f3962436566546420b;hpb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;p=mmh diff --git a/sbr/fmt_addr.c b/sbr/fmt_addr.c index 97f4271..be9b483 100644 --- a/sbr/fmt_addr.c +++ b/sbr/fmt_addr.c @@ -2,8 +2,6 @@ /* * fmt_addr.c -- format an address field (from fmt_scan) * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -29,11 +27,9 @@ static unsigned int bufsiz; /* current size of buf */ int i = dst - buf;\ int n = last_dst - buf;\ bufsiz += ((dst + len - bufend) / BUFINCR + 1) * BUFINCR;\ - buf = realloc (buf, bufsiz);\ + buf = mh_xrealloc (buf, bufsiz);\ dst = buf + i;\ last_dst = buf + n;\ - if (! buf)\ - adios (NULL, "formataddr: couldn't get buffer space");\ bufend = buf + bufsiz;\ }