- Timestamp:
- Mar 5, 2011, 3:25:29 PM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 488913a
- Parents:
- 010a951
- git-author:
- David Benjamin <davidben@mit.edu> (02/28/11 18:45:28)
- git-committer:
- David Benjamin <davidben@mit.edu> (03/05/11 15:25:29)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zephyr.c
rbb85767 re3a75ed 762 762 } 763 763 } else if (!strcmp(retnotice->z_message, ZSRVACK_NOTSENT)) { 764 #define BUFFLEN 1024765 764 if (retnotice->z_recipient == NULL 766 765 || *retnotice->z_recipient == 0 767 766 || *retnotice->z_recipient == '@') { 768 char buff[BUFFLEN];767 char *buff; 769 768 owl_function_error("No one subscribed to class %s", retnotice->z_class); 770 snprintf(buff, BUFFLEN,"Could not send message to class %s: no one subscribed.\n", retnotice->z_class);769 buff = g_strdup_printf("Could not send message to class %s: no one subscribed.\n", retnotice->z_class); 771 770 owl_function_adminmsg("", buff); 771 g_free(buff); 772 772 } else { 773 char buff[BUFFLEN];773 char *buff; 774 774 owl_zwrite zw; 775 775 char *realm; … … 783 783 */ 784 784 if(strcasecmp(retnotice->z_class, "message")) { 785 snprintf(buff, BUFFLEN,785 buff = g_strdup_printf( 786 786 "Could not send message to %s: " 787 787 "not logged in or subscribing to class %s, instance %s.\n", … … 790 790 retnotice->z_class_inst); 791 791 } else if(strcasecmp(retnotice->z_class_inst, "personal")) { 792 snprintf(buff, BUFFLEN,792 buff = g_strdup_printf( 793 793 "Could not send message to %s: " 794 794 "not logged in or subscribing to instance %s.\n", … … 796 796 retnotice->z_class_inst); 797 797 } else { 798 snprintf(buff, BUFFLEN,798 buff = g_strdup_printf( 799 799 "Could not send message to %s: " 800 800 "not logged in or subscribing to messages.\n", … … 820 820 821 821 owl_zwrite_cleanup(&zw); 822 g_free(buff); 822 823 g_free(tmp); 823 824 }
Note: See TracChangeset
for help on using the changeset viewer.