Changeset 73d8a88
- Timestamp:
- Mar 29, 2009, 11:49:55 AM (16 years ago)
- Branches:
- owl
- Children:
- 3674002
- Parents:
- 924ee11
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r924ee11 r73d8a88 1399 1399 owl_message *m; 1400 1400 owl_fmtext fm, attrfm; 1401 char buff[10000];1401 char *buff; 1402 1402 owl_view *v; 1403 1403 #ifdef HAVE_LIBZEPHYR … … 1416 1416 owl_fmtext_append_bold(&fm, "General Information:\n"); 1417 1417 owl_fmtext_append_normal(&fm, " Msg Id : "); 1418 sprintf(buff,"%i", owl_message_get_id(m));1418 buff=owl_sprintf("%i", owl_message_get_id(m)); 1419 1419 owl_fmtext_append_normal(&fm, buff); 1420 owl_free(buff); 1420 1421 owl_fmtext_append_normal(&fm, "\n"); 1421 1422 … … 1500 1501 if (!owl_message_is_pseudo(m)) { 1501 1502 owl_fmtext_append_normal(&fm, "\n"); 1502 sprintf(buff," Port : %i\n", ntohs(n->z_port));1503 buff=owl_sprintf(" Port : %i\n", ntohs(n->z_port)); 1503 1504 owl_fmtext_append_normal(&fm, buff); 1505 owl_free(buff); 1504 1506 1505 1507 owl_fmtext_append_normal(&fm, " Auth : "); … … 1507 1509 owl_fmtext_append_normal(&fm, "\n"); 1508 1510 1509 /* fix this */1510 sprintf(buff, " Checkd Ath: %i\n", n->z_checked_auth);1511 sprintf(buff, "%s Multi notc: %s\n", buff, n->z_multinotice);1512 sprintf(buff, "%s Num other : %i\n", buff, n->z_num_other_fields);1513 sprintf(buff, "%s Msg Len : %i\n", buff,n->z_message_len);1511 buff=owl_sprintf(" Checkd Ath: %i\n Multi notc: %s\n Num other : %i\n Msg Len : %i\n", 1512 n->z_checked_auth, 1513 n->z_multinotice, 1514 n->z_num_other_fields, 1515 n->z_message_len); 1514 1516 owl_fmtext_append_normal(&fm, buff); 1517 owl_free(buff); 1515 1518 1516 sprintf(buff," Fields : %i\n", owl_zephyr_get_num_fields(n));1519 buff=owl_sprintf(" Fields : %i\n", owl_zephyr_get_num_fields(n)); 1517 1520 owl_fmtext_append_normal(&fm, buff); 1521 owl_free(buff); 1518 1522 1519 1523 fields=owl_zephyr_get_num_fields(n); 1520 1524 for (i=0; i<fields; i++) { 1521 sprintf(buff, " Field %i : ", i+1); 1525 buff=owl_sprintf(" Field %i : ", i+1); 1526 owl_fmtext_append_normal(&fm, buff); 1527 owl_free(buff); 1522 1528 1523 1529 ptr=owl_zephyr_get_field(n, i+1); … … 1538 1544 } 1539 1545 1540 strcat(buff, tmpbuff); 1541 strcat(buff, "\n"); 1542 owl_fmtext_append_normal(&fm, buff); 1546 owl_fmtext_append_normal(&fm, tmpbuff); 1547 owl_fmtext_append_normal(&fm, "\n"); 1543 1548 } 1544 1549 owl_fmtext_append_normal(&fm, " Default Fm:");
Note: See TracChangeset
for help on using the changeset viewer.