aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/chattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/chattr.c')
-rw-r--r--e2fsprogs/chattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsprogs/chattr.c b/e2fsprogs/chattr.c
index 07cee8f7c..5ba458934 100644
--- a/e2fsprogs/chattr.c
+++ b/e2fsprogs/chattr.c
@@ -169,7 +169,7 @@ static int chattr_dir_proc(const char *dir_name, struct dirent *de,
(de->d_name[1] == '.' && de->d_name[2] == '\0'))) {
char *path;
if (asprintf(&path, "%s/%s", dir_name, de->d_name) == -1)
- bb_error_msg_and_die("asprintf failed");
+ bb_error_msg_and_die(bb_msg_memory_exhausted);
change_attributes(path);
free(path);
}