- Timestamp:
- Feb 11, 2011, 4:31:46 PM (13 years ago)
- Branches:
- master, release-1.10, 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
message.c
rddbbcffa rd4927a7 47 47 /* save the time */ 48 48 m->time=time(NULL); 49 m->timestr= owl_strdup(ctime(&(m->time)));49 m->timestr=g_strdup(ctime(&(m->time))); 50 50 m->timestr[strlen(m->timestr)-1]='\0'; 51 51 … … 131 131 buff=owl_sprintf(" %-15.15s: %-35.35s\n", owl_pair_get_key(p), "<error>"); 132 132 if(buff == NULL) 133 buff= owl_strdup(" <error>\n");133 buff=g_strdup(" <error>\n"); 134 134 } 135 135 owl_fmtext_append_normal(fm, buff); … … 586 586 cur+=3; 587 587 while (*cur && *cur==' ') cur++; 588 out = owl_strdup(cur);588 out = g_strdup(cur); 589 589 end = strchr(out, '\n'); 590 590 if (end) end[0] = '\0'; … … 609 609 shortuser = short_zuser(user); 610 610 if (strcasecmp(shortuser, recip) != 0) { 611 out = g_list_prepend(out, owl_strdup(user));611 out = g_list_prepend(out, g_strdup(user)); 612 612 } 613 613 g_free(shortuser); … … 795 795 if (m->timestr) g_free(m->timestr); 796 796 m->time=n->z_time.tv_sec; 797 m->timestr= owl_strdup(ctime(&(m->time)));797 m->timestr=g_strdup(ctime(&(m->time))); 798 798 m->timestr[strlen(m->timestr)-1]='\0'; 799 799
Note: See TracChangeset
for help on using the changeset viewer.