Changeset 3472845 for logging.c


Ignore:
Timestamp:
Feb 11, 2011, 5:18:45 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, 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
  • logging.c

    rd4927a7 r3472845  
    149149    to = short_zuser(owl_message_get_recipient(m));
    150150  } else if (owl_message_is_type_jabber(m)) {
    151     to = owl_sprintf("jabber:%s", owl_message_get_recipient(m));
     151    to = g_strdup_printf("jabber:%s", owl_message_get_recipient(m));
    152152    owl_text_tr(to, '/', '_');
    153153  } else if (owl_message_is_type_aim(m)) {
     
    155155    temp = owl_aim_normalize_screenname(owl_message_get_recipient(m));
    156156    temp2 = g_utf8_strdown(temp,-1);
    157     to = owl_sprintf("aim:%s", temp2);
     157    to = g_strdup_printf("aim:%s", temp2);
    158158    g_free(temp2);
    159159    g_free(temp);
     
    269269    temp = owl_aim_normalize_screenname(owl_message_get_sender(m));
    270270    normalto = g_utf8_strdown(temp, -1);
    271     from=frombuff=owl_sprintf("aim:%s", normalto);
     271    from=frombuff=g_strdup_printf("aim:%s", normalto);
    272272    g_free(normalto);
    273273    g_free(temp);
     
    276276  } else if (owl_message_is_type_jabber(m)) {
    277277    if (personal) {
    278       from=frombuff=owl_sprintf("jabber:%s",owl_message_get_sender(m));
    279     } else {
    280       from=frombuff=owl_sprintf("jabber:%s",owl_message_get_recipient(m));
     278      from=frombuff=g_strdup_printf("jabber:%s",owl_message_get_sender(m));
     279    } else {
     280      from=frombuff=g_strdup_printf("jabber:%s",owl_message_get_recipient(m));
    281281    }
    282282  } else {
Note: See TracChangeset for help on using the changeset viewer.