Changes in functions.c [f9eea4c:3617286]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
rf9eea4c r3617286 1606 1606 sprintf(buff, " Field %i : ", i+1); 1607 1607 1608 ptr=owl_zephyr_get_field _as_utf8(n, i+1);1608 ptr=owl_zephyr_get_field(n, i+1); 1609 1609 len=strlen(ptr); 1610 1610 if (len<30) { … … 2187 2187 void owl_function_start_command(char *line) 2188 2188 { 2189 int i, j; 2189 2190 owl_editwin *tw; 2190 2191 … … 2197 2198 owl_global_set_needrefresh(&g); 2198 2199 2199 owl_editwin_insert_string(tw, line); 2200 j=strlen(line); 2201 for (i=0; i<j; i++) { 2202 owl_editwin_process_char(tw, line[i]); 2203 } 2200 2204 owl_editwin_redisplay(tw, 0); 2201 2205 … … 2595 2599 } 2596 2600 /* downcase it */ 2597 { 2598 char *temp = g_utf8_strdown(filtname, -1); 2599 if (temp) { 2600 owl_free(filtname); 2601 filtname = temp; 2602 } 2603 } 2601 downstr(filtname); 2604 2602 /* turn spaces, single quotes, and double quotes into dots */ 2605 2603 owl_text_tr(filtname, ' ', '.'); … … 3026 3024 char *quoted; 3027 3025 3028 buff= owl_malloc(strlen(class)+strlen(inst)+strlen(recip)+100);3026 buff=malloc(strlen(class)+strlen(inst)+strlen(recip)+100); 3029 3027 strcpy(buff, "class"); 3030 3028 if (!strcmp(class, "*")) { … … 3330 3328 if (ret==0) { 3331 3329 for (x=0; x<numlocs; x++) { 3332 line= owl_malloc(strlen(location[x].host)+strlen(location[x].time)+strlen(location[x].tty)+100);3330 line=malloc(strlen(location[x].host)+strlen(location[x].time)+strlen(location[x].tty)+100); 3333 3331 tmp=short_zuser(user); 3334 3332 sprintf(line, " %-10.10s %-24.24s %-12.12s %20.20s\n", … … 3373 3371 owl_view *v; 3374 3372 FILE *file; 3375 char *plaintext;3376 3373 3377 3374 v=owl_global_get_current_view(&g); … … 3396 3393 for (i=0; i<j; i++) { 3397 3394 m=owl_view_get_element(v, i); 3398 plaintext = owl_strip_format_chars(owl_message_get_text(m)); 3399 if (plaintext) { 3400 fputs(plaintext, file); 3401 owl_free(plaintext); 3402 } 3395 fputs(owl_message_get_text(m), file); 3403 3396 } 3404 3397 fclose(file); … … 3441 3434 _exit(127); 3442 3435 } 3443 parsed= owl_realloc(parsed, sizeof(*parsed) * (myargc+1));3436 parsed=realloc(parsed, sizeof(*parsed) * (myargc+1)); 3444 3437 parsed[myargc] = NULL; 3445 3438
Note: See TracChangeset
for help on using the changeset viewer.