Changeset b70d24f for functions.c
- Timestamp:
- Feb 19, 2008, 1:23:14 AM (16 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 07bfbc2
- Parents:
- 5f3168a (diff), 2f69081 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r6b580b0 r5f3168a 1606 1606 sprintf(buff, " Field %i : ", i+1); 1607 1607 1608 ptr=owl_zephyr_get_field (n, i+1);1608 ptr=owl_zephyr_get_field_as_utf8(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;2190 2189 owl_editwin *tw; 2191 2190 … … 2198 2197 owl_global_set_needrefresh(&g); 2199 2198 2200 j=strlen(line); 2201 for (i=0; i<j; i++) { 2202 owl_editwin_process_char(tw, line[i]); 2203 } 2199 owl_editwin_insert_string(tw, line); 2204 2200 owl_editwin_redisplay(tw, 0); 2205 2201 … … 2599 2595 } 2600 2596 /* downcase it */ 2601 downstr(filtname); 2597 { 2598 char *temp = g_utf8_strdown(filtname, -1); 2599 if (temp) { 2600 owl_free(filtname); 2601 filtname = temp; 2602 } 2603 } 2602 2604 /* turn spaces, single quotes, and double quotes into dots */ 2603 2605 owl_text_tr(filtname, ' ', '.'); … … 3024 3026 char *quoted; 3025 3027 3026 buff= malloc(strlen(class)+strlen(inst)+strlen(recip)+100);3028 buff=owl_malloc(strlen(class)+strlen(inst)+strlen(recip)+100); 3027 3029 strcpy(buff, "class"); 3028 3030 if (!strcmp(class, "*")) { … … 3328 3330 if (ret==0) { 3329 3331 for (x=0; x<numlocs; x++) { 3330 line= malloc(strlen(location[x].host)+strlen(location[x].time)+strlen(location[x].tty)+100);3332 line=owl_malloc(strlen(location[x].host)+strlen(location[x].time)+strlen(location[x].tty)+100); 3331 3333 tmp=short_zuser(user); 3332 3334 sprintf(line, " %-10.10s %-24.24s %-12.12s %20.20s\n", … … 3371 3373 owl_view *v; 3372 3374 FILE *file; 3375 char *plaintext; 3373 3376 3374 3377 v=owl_global_get_current_view(&g); … … 3393 3396 for (i=0; i<j; i++) { 3394 3397 m=owl_view_get_element(v, i); 3395 fputs(owl_message_get_text(m), file); 3398 plaintext = owl_strip_format_chars(owl_message_get_text(m)); 3399 if (plaintext) { 3400 fputs(plaintext, file); 3401 owl_free(plaintext); 3402 } 3396 3403 } 3397 3404 fclose(file); … … 3434 3441 _exit(127); 3435 3442 } 3436 parsed= realloc(parsed, sizeof(*parsed) * (myargc+1));3443 parsed=owl_realloc(parsed, sizeof(*parsed) * (myargc+1)); 3437 3444 parsed[myargc] = NULL; 3438 3445
Note: See TracChangeset
for help on using the changeset viewer.