Changes in message.c [3a3863e:259e60a8]
Legend:
- Unmodified
- Added
- Removed
-
message.c
r3a3863e r259e60a8 120 120 int i, j; 121 121 owl_pair *p; 122 char *buff ;122 char *buff, *tmpbuff; 123 123 124 124 owl_fmtext_init_null(fm); … … 127 127 for (i=0; i<j; i++) { 128 128 p=owl_list_get_element(&(m->attributes), i); 129 buff=g_strdup_printf(" %-15.15s: %-35.35s\n", owl_pair_get_key(p), owl_pair_get_value(p)); 129 130 tmpbuff = g_strdup(owl_pair_get_value(p)); 131 g_strdelimit(tmpbuff, "\n", '~'); 132 g_strdelimit(tmpbuff, "\r", '!'); 133 buff = g_strdup_printf(" %-15.15s: %s\n", owl_pair_get_key(p), tmpbuff); 134 g_free(tmpbuff); 135 130 136 if(buff == NULL) { 131 buff =g_strdup_printf(" %-15.15s: %-35.35s\n", owl_pair_get_key(p), "<error>");137 buff = g_strdup_printf(" %-15.15s: %s\n", owl_pair_get_key(p), "<error>"); 132 138 if(buff == NULL) 133 139 buff=g_strdup(" <error>\n");
Note: See TracChangeset
for help on using the changeset viewer.