OSSP CVS Repository

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

Check-in Number: 1187
Date: 2001-Oct-15 13:26:15 (local)
2001-Oct-15 11:26:15 (UTC)
User:thl
Branch:
Comment: need to check the leftmost colon to support colons in Headervalue
Tickets:
Inspections:
Files:
ossp-pkg/lmtp2nntp/lmtp2nntp.c      1.91 -> 1.92     1 inserted, 1 deleted

ossp-pkg/lmtp2nntp/lmtp2nntp.c 1.91 -> 1.92

--- lmtp2nntp.c  2001/10/15 10:13:50     1.91
+++ lmtp2nntp.c  2001/10/15 11:26:15     1.92
@@ -702,7 +702,7 @@
                 break;
             case 'h': /*POD [B<-h> I<header>:<value>] */
                 cpHeadername = strdup(optarg);
-                if ((cp = strrchr(cpHeadername, ':')) == NULL) {
+                if ((cp = strchr(cpHeadername, ':')) == NULL) {
                     free(cpHeadername);
                     fprintf(stderr, "%s:Error: header \"%s\" for -h option not terminated with colon\n", 
                             ctx->progname, cpHeadername);

CVSTrac 2.0.1