summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-04 16:13:05 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-04 16:13:05 -0800
commit63ffe130ceed78534bee790ee5dbbb47ced63d84 (patch)
tree9eb36f288adcd96d80937c0a12b4762f3ff5cd87
parent4c6c603798adc8412d0be8ad46e05a2553b6b9c7 (diff)
downloadvyatta-bash-63ffe130ceed78534bee790ee5dbbb47ced63d84.tar.gz
vyatta-bash-63ffe130ceed78534bee790ee5dbbb47ced63d84.zip
use xmalloc instead
-rw-r--r--general.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/general.c b/general.c
index eb68141..d027ad6 100644
--- a/general.c
+++ b/general.c
@@ -1041,13 +1041,13 @@ vyatta_user_in_group(uid_t ruid, char *grp_name)
do {
psize = sysconf(_SC_GETPW_R_SIZE_MAX);
- pbuf = (char *) malloc(psize);
+ pbuf = (char *) xmalloc(psize);
if (!pbuf) {
break;
}
gsize = sysconf(_SC_GETGR_R_SIZE_MAX);
- gbuf = (char *) malloc(gsize);
+ gbuf = (char *) xmalloc(gsize);
if (!gbuf) {
break;
}