OSSP CVS Repository

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

Check-in Number: 1902
Date: 2002-Feb-27 11:22:38 (local)
2002-Feb-27 10:22:38 (UTC)
User:thl
Branch:
Comment: removed odd incl./excl. problem
Tickets:
Inspections:
Files:
ossp-pkg/lmtp2nntp/lmtp2nntp_config.c      1.56 -> 1.57     1 inserted, 1 deleted

ossp-pkg/lmtp2nntp/lmtp2nntp_config.c 1.56 -> 1.57

--- lmtp2nntp_config.c   2002/02/27 10:02:59     1.56
+++ lmtp2nntp_config.c   2002/02/27 10:22:38     1.57
@@ -1369,7 +1369,7 @@
     log2(ctx, DEBUG, "rgx_lookup variable \"%s\" (%d)", var_ptr, var_len);
     rc = VAR_ERR_UNDEFINED_VARIABLE;
     i = atoi(var_ptr); /* works with both '}' and '\0' termination */
-    if (i <= ctx->nMatch) {
+    if (i < ctx->nMatch) {
         *val_ptr = ctx->acpMatch[i];
         *val_len = strlen(ctx->acpMatch[i]);
         *val_size = 0;

CVSTrac 2.0.1