Changes in message.c [3a7cf49:635881c]
Legend:
- Unmodified
- Added
- Removed
-
message.c
r3a7cf49 r635881c 79 79 owl_list_append_element(&(m->attributes), pair); 80 80 } 81 owl_pair_set_value(pair, owl_ validate_or_convert(attrvalue));81 owl_pair_set_value(pair, owl_strdup(attrvalue)); 82 82 } 83 83 … … 330 330 res=owl_message_get_attribute_value(m, "isprivate"); 331 331 if (!res) return(0); 332 return (1);332 return !strcmp(res, "true"); 333 333 } 334 334 … … 493 493 { 494 494 if(m->zwriteline) owl_free(m->zwriteline); 495 m->zwriteline= owl_strdup(line);495 m->zwriteline=strdup(line); 496 496 } 497 497 … … 535 535 owl_fmtext_init_null(&b); 536 536 537 owl_fmtext_truncate_lines(&(m->fmtext->fmtext), aline, bline-aline , &a);537 owl_fmtext_truncate_lines(&(m->fmtext->fmtext), aline, bline-aline+1, &a); 538 538 owl_fmtext_truncate_cols(&a, acol, bcol, &b); 539 owl_fmtext_colorize(&b, fgcolor); 540 owl_fmtext_colorizebg(&b, bgcolor); 541 539 if (fgcolor!=OWL_COLOR_DEFAULT) { 540 owl_fmtext_colorize(&b, fgcolor); 541 } 542 if (bgcolor!=OWL_COLOR_DEFAULT) { 543 owl_fmtext_colorizebg(&b, bgcolor); 544 } 545 546 if (owl_global_is_search_active(&g)) { 547 owl_fmtext_search_and_highlight(&b, owl_global_get_search_string(&g)); 548 } 549 542 550 owl_fmtext_curs_waddstr(&b, win); 543 551 … … 882 890 } 883 891 884 m->zwriteline= owl_strdup("");892 m->zwriteline=strdup(""); 885 893 886 894 /* save the hostname */ … … 964 972 } 965 973 966 m->zwriteline= owl_strdup("");974 m->zwriteline=strdup(""); 967 975 968 976 owl_message_set_body(m, "<uninitialized>");
Note: See TracChangeset
for help on using the changeset viewer.