Changeset 99b50a5 for functions.c
- Timestamp:
- Feb 11, 2009, 12:20:21 PM (14 years ago)
- Branches:
- master, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 3538bc8
- Parents:
- c894c15
- git-author:
- Nelson Elhage <nelhage@mit.edu> (02/10/09 18:46:13)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (02/11/09 12:20:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
rc894c15 r99b50a5 3100 3100 owl_buddy *b; 3101 3101 owl_list anyone; 3102 char * foo, *timestr;3102 char *timestr; 3103 3103 #ifdef HAVE_LIBZEPHYR 3104 char *tmp, *user , *line;3104 char *tmp, *user; 3105 3105 ZLocations_t location[200]; 3106 3106 int numlocs, ret; … … 3124 3124 timestr=owl_strdup(""); 3125 3125 } 3126 foo=owl_sprintf(" %-20.20s %-12.12s\n", owl_buddy_get_name(b), timestr); 3127 owl_fmtext_append_normal(&fm, foo); 3126 owl_fmtext_appendf_normal(&fm, " %-20.20s %-12.12s\n", owl_buddy_get_name(b), timestr); 3128 3127 owl_free(timestr); 3129 owl_free(foo);3130 3128 } 3131 3129 } … … 3155 3153 if (ret==0) { 3156 3154 for (x=0; x<numlocs; x++) { 3157 line=owl_malloc(strlen(location[x].host)+strlen(location[x].time)+strlen(location[x].tty)+100);3158 3155 tmp=short_zuser(user); 3159 sprintf(line, " %-10.10s %-24.24s %-12.12s %20.20s\n", 3160 tmp, 3161 location[x].host, 3162 location[x].tty, 3163 location[x].time); 3164 owl_fmtext_append_normal(&fm, line); 3156 owl_fmtext_appendf_normal(&fm, " %-10.10s %-24.24s %-12.12s %20.20s\n", 3157 tmp, 3158 location[x].host, 3159 location[x].tty, 3160 location[x].time); 3165 3161 owl_free(tmp); 3166 owl_free(line);3167 3162 } 3168 3163 if (numlocs>=200) {
Note: See TracChangeset
for help on using the changeset viewer.