diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-04 16:13:05 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-04 16:13:05 -0800 |
commit | 63ffe130ceed78534bee790ee5dbbb47ced63d84 (patch) | |
tree | 9eb36f288adcd96d80937c0a12b4762f3ff5cd87 | |
parent | 4c6c603798adc8412d0be8ad46e05a2553b6b9c7 (diff) | |
download | vyatta-bash-63ffe130ceed78534bee790ee5dbbb47ced63d84.tar.gz vyatta-bash-63ffe130ceed78534bee790ee5dbbb47ced63d84.zip |
use xmalloc instead
-rw-r--r-- | general.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |