Changeset d4927a7 for message.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
  • message.c

    rddbbcffa rd4927a7  
    4747  /* save the time */
    4848  m->time=time(NULL);
    49   m->timestr=owl_strdup(ctime(&(m->time)));
     49  m->timestr=g_strdup(ctime(&(m->time)));
    5050  m->timestr[strlen(m->timestr)-1]='\0';
    5151
     
    131131      buff=owl_sprintf("  %-15.15s: %-35.35s\n", owl_pair_get_key(p), "<error>");
    132132      if(buff == NULL)
    133         buff=owl_strdup("   <error>\n");
     133        buff=g_strdup("   <error>\n");
    134134    }
    135135    owl_fmtext_append_normal(fm, buff);
     
    586586  cur+=3;
    587587  while (*cur && *cur==' ') cur++;
    588   out = owl_strdup(cur);
     588  out = g_strdup(cur);
    589589  end = strchr(out, '\n');
    590590  if (end) end[0] = '\0';
     
    609609    shortuser = short_zuser(user);
    610610    if (strcasecmp(shortuser, recip) != 0) {
    611       out = g_list_prepend(out, owl_strdup(user));
     611      out = g_list_prepend(out, g_strdup(user));
    612612    }
    613613    g_free(shortuser);
     
    795795  if (m->timestr) g_free(m->timestr);
    796796  m->time=n->z_time.tv_sec;
    797   m->timestr=owl_strdup(ctime(&(m->time)));
     797  m->timestr=g_strdup(ctime(&(m->time)));
    798798  m->timestr[strlen(m->timestr)-1]='\0';
    799799
Note: See TracChangeset for help on using the changeset viewer.