- Timestamp:
- Feb 11, 2011, 5:18:45 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 8a97586
- Parents:
- d4927a7
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/27/09 00:56:39)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (02/11/11 17:18:45)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zwrite.c
rd4927a7 r3472845 176 176 for (i=0; i<j; i++) { 177 177 if (strcmp(z->realm, "")) { 178 to = owl_sprintf("%s@%s", (const char *) owl_list_get_element(&(z->recips), i), z->realm);178 to = g_strdup_printf("%s@%s", (const char *) owl_list_get_element(&(z->recips), i), z->realm); 179 179 } else { 180 180 to = g_strdup(owl_list_get_element(&(z->recips), i)); … … 207 207 tmp = toline; 208 208 if (strcmp(z->realm, "")) { 209 toline = owl_sprintf( "%s%s@%s ", toline, (const char *) owl_list_get_element(&(z->recips), i), z->realm);209 toline = g_strdup_printf( "%s%s@%s ", toline, (const char *) owl_list_get_element(&(z->recips), i), z->realm); 210 210 } else { 211 toline = owl_sprintf( "%s%s ", toline, (const char *) owl_list_get_element(&(z->recips), i));211 toline = g_strdup_printf( "%s%s ", toline, (const char *) owl_list_get_element(&(z->recips), i)); 212 212 } 213 213 g_free(tmp); … … 216 216 tmp = owl_validate_utf8(msg); 217 217 tmp2 = owl_text_expand_tabs(tmp); 218 z->message= owl_sprintf("%s\n%s", toline, tmp2);218 z->message=g_strdup_printf("%s\n%s", toline, tmp2); 219 219 g_free(toline); 220 220 g_free(tmp); … … 250 250 for (i=0; i<j; i++) { 251 251 if (strcmp(z->realm, "")) { 252 to = owl_sprintf("%s@%s", (const char *) owl_list_get_element(&(z->recips), i), z->realm);252 to = g_strdup_printf("%s@%s", (const char *) owl_list_get_element(&(z->recips), i), z->realm); 253 253 } else { 254 254 to = g_strdup( owl_list_get_element(&(z->recips), i)); … … 262 262 } 263 263 } else { 264 to = owl_sprintf( "@%s", z->realm);264 to = g_strdup_printf( "@%s", z->realm); 265 265 ret = send_zephyr(z->opcode, z->zsig, z->class, z->inst, to, z->message); 266 266 }
Note: See TracChangeset
for help on using the changeset viewer.