diff options
-rw-r--r-- | lib/libtermcap/termcap.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |