mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 06:41:14 -03:00
Drop use of deprecated bzero(3)
Use `memset(__, 0, __)` instead. Also fixes #5461 by not needing `bzero` from `strings.h` anymore.
This commit is contained in:
@@ -270,7 +270,7 @@ class history_file_contents_t {
|
|||||||
ptr += amt;
|
ptr += amt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bzero(ptr, remaining);
|
memset(ptr, 0, remaining);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user