mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08: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:
parent
d1913f0df0
commit
ef23923c8d
|
@ -270,7 +270,7 @@ class history_file_contents_t {
|
|||
ptr += amt;
|
||||
}
|
||||
}
|
||||
bzero(ptr, remaining);
|
||||
memset(ptr, 0, remaining);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user