OSSP CVS Repository

ossp - Difference in ossp-pkg/petidomo/hermes.c versions 1.4 and 1.5
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/petidomo/hermes.c 1.4 -> 1.5

--- hermes.c     2001/01/06 11:05:08     1.4
+++ hermes.c     2001/01/08 20:36:19     1.5
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/hermes.c,v $
-   $Revision: 1.4 $
+   $Revision: 1.5 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -235,12 +235,11 @@
     dst += len;
     *dst = '\0';
 
-    /* Add custom headers if there are some. */
+    /* Add custom headers if there are any. */
 
-    buffer = text_easy_sprintf("lists/%s/header", listname);
-    if (stat(buffer, &sb) == 0)
+    if (stat(ListConfig->header_file, &sb) == 0)
         {
-        char* p = loadfile(buffer);
+        char* p = loadfile(ListConfig->header_file);
         if (p == NULL)
             {
             syslog(LOG_ERR, "Failed reading the header file for list \"%s\".", listname);
@@ -249,14 +248,12 @@
         strcpy(dst, p);
         dst += strlen(p);
         free(p);
-        free(buffer);
         }
 
     /* Add the signature if there is one. */
 
-    buffer = text_easy_sprintf("lists/%s/signature", listname);
-    if (stat(buffer, &sb) == 0) {
-        buffer = loadfile(buffer);
+    if (stat(ListConfig->sig_file, &sb) == 0) {
+        buffer = loadfile(ListConfig->sig_file);
         if (buffer == NULL) {
             syslog(LOG_ERR, "Failed reading the signature file for list \"%s\".", listname);
             exit(1);

CVSTrac 2.0.1