APPROVE COMMIT 21.5
>>>>"MF" == Mike FABIAN <mfabian(a)suse.de>
writes:
MF> It looks like memset () is not used correctly in
MF> xemacs-21.5.25/src/vdb-posix.c.
Good catch, thanks.
Committed this:
src/ChangeLog addition:
2006-03-27 Mike Fabian <mfabian(a)suse.de>
* vdb-posix.c (vdb_install_signal_handler): Correct memset.
xemacs-21.5 source patch:
Diff command: cvs -q diff -u
Files affected: src/vdb-posix.c
Index: src/vdb-posix.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/vdb-posix.c,v
retrieving revision 1.1
diff -u -r1.1 vdb-posix.c
--- src/vdb-posix.c 25 Nov 2005 01:42:07 -0000 1.1
+++ src/vdb-posix.c 27 Mar 2006 15:18:25 -0000
@@ -118,7 +118,7 @@
}
#ifdef USE_SIGACTION
- memset(&act, sizeof(struct sigaction), 0);
+ memset(&act, 0, sizeof(struct sigaction));
act.sa_sigaction = vdb_fault_handler;
sigemptyset (&act.sa_mask);
act.sa_flags = SA_SIGINFO;
--
Marcus