X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffmt_addr.c;h=25c0e168ae8580e5c03b9024846d660e3c8962dd;hp=c7379b10f056ce11751e0303bd7bb9db2766543d;hb=4112940aea5591648b03a81907408752c08b33aa;hpb=5ba9c2f13fedf1d8d6ed907ef1f505616290efaa diff --git a/sbr/fmt_addr.c b/sbr/fmt_addr.c index c7379b1..25c0e16 100644 --- a/sbr/fmt_addr.c +++ b/sbr/fmt_addr.c @@ -41,7 +41,7 @@ static unsigned int bufsiz; /* current size of buf */ ** returns a pointer to the concatenated address string. ** ** We try to not do a lot of malloc/copy/free's (which is why we -** don't call "getcpy") but still place no upper limit on the +** don't call "mh_xstrdup") but still place no upper limit on the ** length of the result string. ** ** This routine is placed in a separate library so it can be @@ -60,7 +60,7 @@ formataddr(char *orig, char *str) /* if we don't have a buffer yet, get one */ if (bufsiz == 0) { - buf = mh_xmalloc(BUFINCR); + buf = mh_xcalloc(BUFINCR, sizeof(char)); last_dst = buf; /* XXX */ bufsiz = BUFINCR - 6; /* leave some slop */ bufend = buf + bufsiz;