projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dd1d68
)
Use safer xrealloc() instead of realloc()
author
Jindrich Novy
<jnovy@redhat.com>
Thu, 25 Sep 2008 17:44:29 +0000
(19:44 +0200)
committer
Jindrich Novy
<jnovy@redhat.com>
Thu, 25 Sep 2008 18:03:51 +0000
(20:03 +0200)
rpmio/rpmstring.c
patch
|
blob
|
history
diff --git
a/rpmio/rpmstring.c
b/rpmio/rpmstring.c
index
08d44b4
..
68543ce
100644
(file)
--- 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 =
x
realloc(dst, dst_size+arg_size+1); /* include '\0' */
p = &dst[dst_size];
va_start(ap, arg);