Changeset d4927a7 for aim.c


Ignore:
Timestamp:
Feb 11, 2011, 4:31:46 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
3472845
Parents:
ddbbcffa
git-author:
Anders Kaseorg <andersk@mit.edu> (08/27/09 00:55:10)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:46)
Message:
Replace owl_strdup with g_strdup.

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

Legend:

Unmodified
Added
Removed
  • aim.c

    rddbbcffa rd4927a7  
    136136  priv=g_new0(struct owlfaim_priv, 1);
    137137
    138   priv->screenname = owl_strdup(screenname);
    139   priv->password = owl_strdup(password);
    140   priv->server = owl_strdup(FAIM_LOGIN_SERVER);
     138  priv->screenname = g_strdup(screenname);
     139  priv->password = g_strdup(password);
     140  priv->server = g_strdup(FAIM_LOGIN_SERVER);
    141141  sess->aux_data = priv;
    142142
     
    346346  /* there is a max away message lentgh we should check against */
    347347
    348   foo=owl_strdup(msg);
     348  foo=g_strdup(msg);
    349349  len=strlen(foo);
    350350  if (len>500) {
     
    10251025
    10261026  if (!args->msg) {
    1027     realmsg = owl_strdup("");
     1027    realmsg = g_strdup("");
    10281028  } else if (args->icbmflags & AIM_IMFLAGS_UNICODE) {
    10291029    realmsg = g_convert(args->msg, args->msglen, "UTF-8", "UCS-2BE",
     
    10331033                        NULL, NULL, NULL);
    10341034  } else {
    1035     realmsg = owl_strdup(args->msg);
     1035    realmsg = g_strdup(args->msg);
    10361036  }
    10371037
    10381038  if (!realmsg) {
    1039     realmsg = owl_strdup("[Error decoding incoming IM]");
     1039    realmsg = g_strdup("[Error decoding incoming IM]");
    10401040  }
    10411041
Note: See TracChangeset for help on using the changeset viewer.