diff options
author | Jindrich Novy <jnovy@redhat.com> | 2008-09-25 19:44:29 +0200 |
---|---|---|
committer | Jindrich Novy <jnovy@redhat.com> | 2008-09-25 20:03:51 +0200 |
commit | aadc1a314640e5eaf31c7f76f9062b1e4e7d1772 (patch) | |
tree | b1a90703586200108de6a717343b927048b40139 | |
parent | 1dd1d68afe6dc55c37f1292250f1c26a5196ea0a (diff) | |
download | librpm-tizen-aadc1a314640e5eaf31c7f76f9062b1e4e7d1772.tar.gz librpm-tizen-aadc1a314640e5eaf31c7f76f9062b1e4e7d1772.tar.bz2 librpm-tizen-aadc1a314640e5eaf31c7f76f9062b1e4e7d1772.zip |
Use safer xrealloc() instead of realloc()
-rw-r--r-- | rpmio/rpmstring.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |