source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Use mandoc_realloc() in apropos, as we're linking to
@ 2011-10-08 12:20 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-10-08 12:20 UTC (permalink / raw)
  To: source

Log Message:
-----------
Use mandoc_realloc() in apropos, as we're linking to libmandoc.a.

Modified Files:
--------------
    mdocml:
        apropos.c

Revision Data
-------------
Index: apropos.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/apropos.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -Lapropos.c -Lapropos.c -u -p -r1.3 -r1.4
--- apropos.c
+++ apropos.c
@@ -491,10 +491,7 @@ buf_alloc(char **buf, size_t *bufsz, siz
 		return;
 
 	*bufsz = sz + 1024;
-	if (NULL == (*buf = realloc(*buf, *bufsz))) {
-		perror(NULL);
-		exit(EXIT_FAILURE);
-	}
+	*buf = mandoc_realloc(*buf, *bufsz);
 }
 
 /*
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-08 12:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-08 12:20 mdocml: Use mandoc_realloc() in apropos, as we're linking to kristaps

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).