From 44711c1a0e45f0435a3a00cadbfe3e890eaf0c89 Mon Sep 17 00:00:00 2001 From: marcel Date: Tue, 28 Sep 1999 13:43:21 +0000 Subject: Explicitly use sigemptyset to clear a sigset_t. Explicit initialization of sa_flags added so that we can lose the bzero. IIRC, this code is not used anymore since the addition of ncurses. Commit the change anyway so, just to be safe. $FreeBSD$ tag added --- lib/libtermcap/termcap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libtermcap/termcap.c b/lib/libtermcap/termcap.c index 7ce5f72..da46e21 100644 --- a/lib/libtermcap/termcap.c +++ b/lib/libtermcap/termcap.c @@ -29,6 +29,8 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $FreeBSD$ */ #ifndef lint @@ -133,7 +135,8 @@ othersyscall: int unsafe; if (use_issetugid == 1) { - bzero(&sa, sizeof(sa)); + sigemptyset(&sa.sa_mask); + sa.sa_flags = 0; sa.sa_handler = SIG_IGN; if (sigaction(SIGSYS, &sa, &osa) >= 0) sigsys_installed = 1; -- cgit v1.1