From f296310f9c8671aef2cf927fba7397353901c59f Mon Sep 17 00:00:00 2001 From: Reinhard Pfau <Reinhard.Pfau@gmx.de> Date: Wed, 18 Apr 2007 15:25:06 +0200 Subject: [PATCH] Fixed argument check for callback(). Thanks to Reinhard Pfau <Reinhard.Pfau@gmx.de>. Rev: src/modules/Postgres/postgres.c:1.50 --- src/modules/Postgres/postgres.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/Postgres/postgres.c b/src/modules/Postgres/postgres.c index 0d912f6ebd..6a1d3ae885 100644 --- a/src/modules/Postgres/postgres.c +++ b/src/modules/Postgres/postgres.c @@ -2,7 +2,7 @@ || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. -|| $Id: postgres.c,v 1.49 2006/06/06 03:26:00 adam Exp $ +|| $Id: postgres.c,v 1.50 2007/04/18 13:25:06 grubba Exp $ */ /* @@ -690,7 +690,8 @@ static void f_trace (INT32 args) static void f_callback(INT32 args) { - check_all_args("postgres->_set_notify_callback()",BIT_INT|BIT_FUNCTION,0); + check_all_args("postgres->_set_notify_callback()", + args, BIT_INT|BIT_FUNCTION, 0); if (Pike_sp[-args].type==PIKE_T_INT) { if (THIS->notify_callback->type!=PIKE_T_INT) { -- GitLab