From aadc1a314640e5eaf31c7f76f9062b1e4e7d1772 Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Thu, 25 Sep 2008 19:44:29 +0200 Subject: Use safer xrealloc() instead of realloc() --- rpmio/rpmstring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpmio/rpmstring.c b/rpmio/rpmstring.c index 08d44b46a..68543ce34 100644 --- a/rpmio/rpmstring.c +++ b/rpmio/rpmstring.c @@ -227,7 +227,7 @@ char *rstrscat(char **dest, const char *arg, ...) va_end(ap); dst_size = dst ? strlen(dst) : 0; - dst = realloc(dst, dst_size+arg_size+1); /* include '\0' */ + dst = xrealloc(dst, dst_size+arg_size+1); /* include '\0' */ p = &dst[dst_size]; va_start(ap, arg); -- cgit v1.2.3