Changeset d857b66
- Timestamp:
- Mar 2, 2007, 9:29:07 AM (18 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
logging.c
rcd9182d rd857b66 333 333 FILE *file, *allfile; 334 334 char filename[MAXPATHLEN], allfilename[MAXPATHLEN], *logpath; 335 char *frombuff=NULL, *from=NULL, * buff=NULL, *ptr;335 char *frombuff=NULL, *from=NULL, *zsig=NULL; 336 336 int len, ch, i, personal; 337 337 … … 441 441 fprintf(file, "\n"); 442 442 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); 448 445 fprintf(file, "%s\n\n", owl_message_get_body(m)); 449 446 owl_free(tmp); … … 480 477 fprintf(allfile, "\n"); 481 478 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); 483 480 fprintf(allfile, "%s\n\n", owl_message_get_body(m)); 484 481 owl_free(tmp); … … 500 497 } 501 498 502 if (owl_message_is_type_zephyr(m)) {503 owl_free(buff);504 }505 499 owl_free(frombuff); 506 500 }
Note: See TracChangeset
for help on using the changeset viewer.