From 04a6b591ff4663c9126b75817eb3b3bca6fb883b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Fri, 16 Apr 1999 17:08:13 +0200 Subject: [PATCH] Fixed stackbug. Rev: src/modules/system/system.c:1.68 --- src/modules/system/system.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/modules/system/system.c b/src/modules/system/system.c index b40fd68914..1e71cce990 100644 --- a/src/modules/system/system.c +++ b/src/modules/system/system.c @@ -1,5 +1,5 @@ /* - * $Id: system.c,v 1.67 1999/04/15 04:15:10 hubbe Exp $ + * $Id: system.c,v 1.68 1999/04/16 15:08:13 grubba Exp $ * * System-call module for Pike * @@ -15,7 +15,7 @@ #include "system_machine.h" #include "system.h" -RCSID("$Id: system.c,v 1.67 1999/04/15 04:15:10 hubbe Exp $"); +RCSID("$Id: system.c,v 1.68 1999/04/16 15:08:13 grubba Exp $"); #ifdef HAVE_WINSOCK_H #include <winsock.h> #endif @@ -584,7 +584,8 @@ void f_seteuid(INT32 args) #else err = setresuid(-1, id, -1); #endif /* HAVE_SETEUID */ - pop_n_elems(args-1); + + pop_n_elems(args); push_int(err); } #endif /* HAVE_SETEUID || HAVE_SETRESUID */ @@ -617,7 +618,8 @@ void f_setegid(INT32 args) #else err = setresgid(-1, id, -1); #endif /* HAVE_SETEUID */ - pop_n_elems(args-1); + + pop_n_elems(args); push_int(err); } #endif /* HAVE_SETEGID || HAVE_SETRESGID */ -- GitLab