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:
9372a7c
)
Add include <string.h>
author
Peng Huang
<shawn.p.huang@gmail.com>
Fri, 28 May 2010 08:38:01 +0000
(16:38 +0800)
committer
Peng Huang
<shawn.p.huang@gmail.com>
Fri, 28 May 2010 08:38:01 +0000
(16:38 +0800)
bus/ibusimpl.c
patch
|
blob
|
history
diff --git
a/bus/ibusimpl.c
b/bus/ibusimpl.c
index
17054f4
..
7735929
100644
(file)
--- a/
bus/ibusimpl.c
+++ b/
bus/ibusimpl.c
@@
-25,6
+25,7
@@
#include <signal.h>
#include <stdlib.h>
#include <locale.h>
+#include <string.h>
#include <strings.h>
#include "ibusimpl.h"
#include "dbusimpl.h"
@@
-1322,7
+1323,7
@@
_ibus_exit (BusIBusImpl *ibus,
* suffix. */
const gchar suffix[] = " (deleted)";
if (g_str_has_suffix (exe, suffix)) {
- exe [strlen (exe) - s
trlen (suffix)
] = '\0';
+ exe [strlen (exe) - s
izeof (suffix) + 1
] = '\0';
execv (exe, g_argv);
}
g_warning ("execv %s failed!", g_argv[0]);