mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Fixes invalid write in case of memory exaustion.
This commit is contained in:
parent
0b36b3205c
commit
b91ae16e3e
1 changed files with 1 additions and 1 deletions
|
|
@ -1444,7 +1444,7 @@ static int malloc_printn(int f, size_t value)
|
|||
int i;
|
||||
|
||||
if (!value) {
|
||||
return write(2, buf, 2);
|
||||
return write(f, "0", 1);
|
||||
}
|
||||
|
||||
i = sizeof(buf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue