X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffmt_addr.c;h=97f4271e5edf7037aab5c1f3962436566546420b;hp=2e4bff61ea835bee5cbd0133e17ef6c9bed37cd8;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68 diff --git a/sbr/fmt_addr.c b/sbr/fmt_addr.c index 2e4bff6..97f4271 100644 --- a/sbr/fmt_addr.c +++ b/sbr/fmt_addr.c @@ -12,6 +12,7 @@ #include #include #include +#include static char *buf; /* our current working buffer */ static char *bufend; /* end of working buffer */ @@ -63,9 +64,7 @@ formataddr (char *orig, char *str) /* if we don't have a buffer yet, get one */ if (bufsiz == 0) { - buf = malloc (BUFINCR); - if (! buf) - adios (NULL, "formataddr: couldn't allocate buffer space"); + buf = mh_xmalloc (BUFINCR); last_dst = buf; /* XXX */ bufsiz = BUFINCR - 6; /* leave some slop */ bufend = buf + bufsiz;