-/* $OpenBSD: trap.c,v 1.55 2023/12/12 15:30:56 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.56 2023/12/13 12:41:31 miod Exp $ */
/* $NetBSD: exception.c,v 1.32 2006/09/04 23:57:52 uwe Exp $ */
/* $NetBSD: syscall.c,v 1.6 2006/03/07 07:21:50 thorpej Exp $ */
* and stack, but rather r7 is skipped and
* the entire off_t is on the stack.
*/
- if (off_t_arg == 3)
- break;
- *ap++ = tf->tf_r7; argsize -= sizeof(int);
+ if (off_t_arg != 3) {
+ *ap++ = tf->tf_r7;
+ argsize -= sizeof(int);
+ }
if (argsize > 0) {
if ((error = copyin(params, ap, argsize)))