mirror of https://github.com/vitalif/e2fsprogs
Merge branch 'maint' into next
commit
956b0f18a5
|
@ -97,6 +97,11 @@ void do_extent_open(int argc, char *argv[])
|
|||
|
||||
orig_prompt = ss_get_prompt(sci_idx);
|
||||
extent_prompt = malloc(strlen(orig_prompt) + 32);
|
||||
if (extent_prompt == NULL) {
|
||||
com_err(argv[1], retval, "out of memory");
|
||||
return;
|
||||
}
|
||||
|
||||
strcpy(extent_prompt, orig_prompt);
|
||||
cp = strchr(extent_prompt, ':');
|
||||
if (cp)
|
||||
|
|
|
@ -170,7 +170,7 @@ static void fix_symlink (char *path, dev_t my_dev)
|
|||
struct stat stbuf, lstbuf;
|
||||
int c, fix_abs = 0, fix_messy = 0, fix_long = 0;
|
||||
|
||||
if ((c = readlink(path, lpath, sizeof(lpath))) == -1) {
|
||||
if ((c = readlink(path, lpath, sizeof(lpath) - 1)) == -1) {
|
||||
perror(path);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue