diff options
author | Timo Sirainen <cras@irssi.org> | 2001-01-18 02:01:59 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-01-18 02:01:59 +0000 |
commit | 769815a3f4b364a66e4f751bc296d74155709526 (patch) | |
tree | ddf498adc1974a72f6ef06cdffef682d84721a45 /src | |
parent | c180c61816cd9a119d72ba0f2dcd53beb8abd3b0 (diff) | |
download | irssi-769815a3f4b364a66e4f751bc296d74155709526.zip |
signal_emit() - one parameter after last one wasn't NULL but was taken
from va_list
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1132 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/core/signals.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/signals.c b/src/core/signals.c index ad5f4cd8..cb964eb0 100644 --- a/src/core/signals.c +++ b/src/core/signals.c @@ -239,7 +239,7 @@ static int signal_emitv_id(int signal_id, int params, va_list va) g_return_val_if_fail(params >= 0 && params <= SIGNAL_MAX_ARGUMENTS, FALSE); for (n = 0; n < SIGNAL_MAX_ARGUMENTS; n++) - arglist[n] = n > params ? NULL : va_arg(va, gconstpointer); + arglist[n] = n >= params ? NULL : va_arg(va, gconstpointer); rec = g_hash_table_lookup(signals, GINT_TO_POINTER(signal_id)); if (rec != NULL && signal_emit_real(rec, arglist)) |