OSSP CVS Repository

ossp - Check-in [824]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 824
Date: 2001-Sep-03 15:37:00 (local)
2001-Sep-03 13:37:00 (UTC)
User:rse
Branch:
Comment: fix configuration bug in file channel
Tickets:
Inspections:
Files:
ossp-pkg/l2/l2_ch_file.c      1.7 -> 1.8     3 inserted, 3 deleted

ossp-pkg/l2/l2_ch_file.c 1.7 -> 1.8

--- 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;

CVSTrac 2.0.1