Changeset d857b66


Ignore:
Timestamp:
Mar 2, 2007, 9:29:07 AM (18 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
d524c83
Parents:
1716fed
git-author:
Nelson Elhage <nelhage@mit.edu> (03/02/07 09:28:24)
git-committer:
Nelson Elhage <nelhage@mit.edu> (03/02/07 09:29:07)
Message:
Use owl_message_get_zsig instead of owl_message_get_notice.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • logging.c

    rcd9182d rd857b66  
    333333  FILE *file, *allfile;
    334334  char filename[MAXPATHLEN], allfilename[MAXPATHLEN], *logpath;
    335   char *frombuff=NULL, *from=NULL, *buff=NULL, *ptr;
     335  char *frombuff=NULL, *from=NULL, *zsig=NULL;
    336336  int len, ch, i, personal;
    337337
     
    441441    fprintf(file, "\n");
    442442    fprintf(file, "Time: %s Host: %s\n", owl_message_get_timestr(m), owl_message_get_hostname(m));
    443     ptr=owl_zephyr_get_zsig(owl_message_get_notice(m), &i);
    444     buff=owl_malloc(i+10);
    445     memcpy(buff, ptr, i);
    446     buff[i]='\0';
    447     fprintf(file, "From: %s <%s>\n\n", buff, tmp);
     443    zsig=owl_message_get_zsig(m);
     444    fprintf(file, "From: %s <%s>\n\n", zsig, tmp);
    448445    fprintf(file, "%s\n\n", owl_message_get_body(m));
    449446    owl_free(tmp);
     
    480477      fprintf(allfile, "\n");
    481478      fprintf(allfile, "Time: %s Host: %s\n", owl_message_get_timestr(m), owl_message_get_hostname(m));
    482       fprintf(allfile, "From: %s <%s>\n\n", buff, tmp);
     479      fprintf(allfile, "From: %s <%s>\n\n", zsig, tmp);
    483480      fprintf(allfile, "%s\n\n", owl_message_get_body(m));
    484481      owl_free(tmp);
     
    500497  }
    501498
    502   if (owl_message_is_type_zephyr(m)) {
    503     owl_free(buff);
    504   }
    505499  owl_free(frombuff);
    506500}
Note: See TracChangeset for help on using the changeset viewer.