projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
[gnulib.git]
/
lib
/
xvasprintf.c
diff --git
a/lib/xvasprintf.c
b/lib/xvasprintf.c
index
30cea93
..
b684427
100644
(file)
--- a/
lib/xvasprintf.c
+++ b/
lib/xvasprintf.c
@@
-64,7
+64,7
@@
xstrcat (size_t argcount, va_list args)
}
/* Allocate and fill the result string. */
- result =
(char *) xmalloc (totalsize + 1
);
+ result =
XNMALLOC (totalsize + 1, char
);
p = result;
for (i = argcount; i > 0; i--)
{