Changeset 3472845 for message.c


Ignore:
Timestamp:
Feb 11, 2011, 5:18:45 PM (13 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
8a97586
Parents:
d4927a7
git-author:
Anders Kaseorg <andersk@mit.edu> (08/27/09 00:56:39)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/11/11 17:18:45)
Message:
Replace owl_sprintf with g_strdup_printf.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Karl Ramm <kcr@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    rd4927a7 r3472845  
    127127  for (i=0; i<j; i++) {
    128128    p=owl_list_get_element(&(m->attributes), i);
    129     buff=owl_sprintf("  %-15.15s: %-35.35s\n", owl_pair_get_key(p), owl_pair_get_value(p));
     129    buff=g_strdup_printf("  %-15.15s: %-35.35s\n", owl_pair_get_key(p), owl_pair_get_value(p));
    130130    if(buff == NULL) {
    131       buff=owl_sprintf("  %-15.15s: %-35.35s\n", owl_pair_get_key(p), "<error>");
     131      buff=g_strdup_printf("  %-15.15s: %-35.35s\n", owl_pair_get_key(p), "<error>");
    132132      if(buff == NULL)
    133133        buff=g_strdup("   <error>\n");
     
    888888    char *zcrypt;
    889889
    890     zcrypt = owl_sprintf("%s/zcrypt", owl_get_bindir());
     890    zcrypt = g_strdup_printf("%s/zcrypt", owl_get_bindir());
    891891
    892892    rv = call_filter(zcrypt, argv, owl_message_get_body(m), &out, &status);
Note: See TracChangeset for help on using the changeset viewer.