diff --git a/src/modules/Postgres/postgres.c b/src/modules/Postgres/postgres.c
index 0d912f6ebde5c9d25bffb72e7fc415203c2ced8b..6a1d3ae8856efdc697732b2ca108fc74edf21fda 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) {