- Timestamp:
- Oct 17, 2002, 3:00:57 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- e3869df
- Parents:
- aecf3e6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
message.c
ra3ba748 rd309eb3 401 401 m->body[k]='\0'; 402 402 403 /* if zcrypt is enabled try to decrypt the message */ 404 if (owl_global_is_zcrypt(&g) && !strcasecmp(n->z_opcode, "crypt")) { 405 char *out; 406 407 out=owl_malloc(strlen(m->body)*16+20); 408 zcrypt_decrypt(out, m->body, m->class, m->inst); 409 owl_free(m->body); 410 m->body=out; 411 } 412 403 413 /* save the hostname */ 404 414 owl_function_debugmsg("About to do gethostbyaddr"); … … 547 557 char *body, *indent, *ptr, *zsigbuff, frombuff[LINE]; 548 558 ZNotice_t *n; 549 int len; 550 559 560 n=&(m->notice); 561 551 562 /* get the body */ 552 n=&(m->notice); 553 ptr=(owl_zephyr_get_message(n, &len)); 554 body=owl_malloc(len+20); 555 strncpy(body, ptr, len); 556 body[len]='\0'; 563 body=owl_malloc(strlen(m->body)+30); 564 strcpy(body, m->body); 557 565 558 566 /* add a newline if we need to */ … … 650 658 char *body, *indent, *ptr, *zsigbuff, frombuff[LINE]; 651 659 ZNotice_t *n; 652 int len; 660 661 n=&(m->notice); 653 662 654 663 /* get the body */ 655 n=&(m->notice); 656 ptr=(owl_zephyr_get_message(n, &len)); 657 body=owl_malloc(len+20); 658 strncpy(body, ptr, len); 659 body[len]='\0'; 664 body=owl_malloc(strlen(m->body)+30); 665 strcpy(body, m->body); 660 666 661 667 /* add a newline if we need to */
Note: See TracChangeset
for help on using the changeset viewer.