--- l2_ch_file.c 2001/08/15 10:36:03 1.7
+++ l2_ch_file.c 2001/09/03 13:37:00 1.8
@@ -67,7 +67,7 @@
static int hook_configure(l2_context_t *ctx, const char *fmt, va_list ap)
{
l2_ch_file_t *cfg;
- l2_param_t pa[3];
+ l2_param_t pa[4];
l2_result_t rv;
/* parameter checks */
@@ -77,8 +77,8 @@
/* feed and call generic parameter parsing engine */
L2_PARAM_SET(pa[0], path, CHARPTR, &cfg->path);
L2_PARAM_SET(pa[1], append, INT, &cfg->append);
- L2_PARAM_SET(pa[1], perm, LONG, &cfg->perm);
- L2_PARAM_END(pa[2]);
+ L2_PARAM_SET(pa[2], perm, LONG, &cfg->perm);
+ L2_PARAM_END(pa[3]);
rv = l2_channel_setparams(pa, fmt, ap);
return rv;
|