Author: iratqq
Date: Tue Jan 6 08:43:10 2009
New Revision: 5707
Modified:
trunk/emacs/helper.c
trunk/emacs/prop.c
Log:
* emacs/helper.c (helper_send_im_list):
(helper_send_im_list, helper_send_im_change_whole_desktop):
* emacs/prop.c (announce_prop_list_update):
- Use uim_asprintf().
Modified: trunk/emacs/helper.c
==============================================================================
--- trunk/emacs/helper.c (original)
+++ trunk/emacs/helper.c Tue Jan 6 08:43:10 2009
@@ -70,7 +70,7 @@
shortd = uim_get_im_short_desc(ua->context, i);
}
- buflen = asprintf(&buf, HEADER_FORMAT, ua->encoding);
+ buflen = uim_asprintf(&buf, HEADER_FORMAT, ua->encoding);
#undef HEADER_FORMAT
@@ -83,7 +83,7 @@
shortd = uim_get_im_short_desc(ua->context, i);
debug_printf(DEBUG_NOTE, " [%d] = %s %s %s\n", i, name, lang, shortd);
- if (asprintf(&tmpbuf, "%s\t%s\t%s\t%s\n",
+ if (uim_asprintf(&tmpbuf, "%s\t%s\t%s\t%s\n",
name ? name : "" ,
lang ? lang : "" ,
shortd ? shortd : "" ,
@@ -278,7 +278,7 @@
#define HEADER_FORMAT "im_change_whole_desktop\n%s\n"
- asprintf(&buf, HEADER_FORMAT, name ? name : "");
+ uim_asprintf(&buf, HEADER_FORMAT, name ? name : "");
helper_send_message(buf);
Modified: trunk/emacs/prop.c
==============================================================================
--- trunk/emacs/prop.c (original)
+++ trunk/emacs/prop.c Tue Jan 6 08:43:10 2009
@@ -78,7 +78,7 @@
#define PROP_LIST_FORMAT "prop_list_update\ncharset=%s\n%s"
- asprintf(&buf, PROP_LIST_FORMAT, encoding, prop->list);
+ uim_asprintf(&buf, PROP_LIST_FORMAT, encoding, prop->list);
helper_send_message(buf);
free(buf);