projects
/
platform
/
upstream
/
ibus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a08eafe
)
Use one fprintf.
author
Peng Huang
<shawn.p.huang@gmail.com>
Wed, 12 Aug 2009 00:31:38 +0000
(08:31 +0800)
committer
Peng Huang
<shawn.p.huang@gmail.com>
Wed, 12 Aug 2009 00:31:38 +0000
(08:31 +0800)
src/ibusshare.c
patch
|
blob
|
history
diff --git
a/src/ibusshare.c
b/src/ibusshare.c
index
94443f7
..
8fb087e
100644
(file)
--- a/
src/ibusshare.c
+++ b/
src/ibusshare.c
@@
-242,9
+242,11
@@
ibus_write_address (const gchar *address)
pf = fopen (ibus_get_socket_path (), "w");
g_return_if_fail (pf != NULL);
- fprintf (pf, "# This file is created by ibus-daemon, please do not modify it\n");
- fprintf (pf, "IBUS_ADDRESS=%s\n", address);
- fprintf (pf, "IBUS_DAEMON_PID=%ld\n", getpid ());
+ fprintf (pf,
+ "# This file is created by ibus-daemon, please do not modify it\n"
+ "IBUS_ADDRESS=%s\n"
+ "IBUS_DAEMON_PID=%ld\n",
+ address, (glong) getpid ());
fclose (pf);
}