aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c
index f40d260dabe..c1134521c71 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -8084,7 +8084,7 @@ xim_initialize (struct x_display_info *dpyinfo, char *resource_name)
8084 { 8084 {
8085#ifdef HAVE_X11R6_XIM 8085#ifdef HAVE_X11R6_XIM
8086 struct xim_inst_t *xim_inst; 8086 struct xim_inst_t *xim_inst;
8087 int len; 8087 ptrdiff_t len;
8088 8088
8089 xim_inst = (struct xim_inst_t *) xmalloc (sizeof (struct xim_inst_t)); 8089 xim_inst = (struct xim_inst_t *) xmalloc (sizeof (struct xim_inst_t));
8090 dpyinfo->xim_callback_data = xim_inst; 8090 dpyinfo->xim_callback_data = xim_inst;
@@ -9720,8 +9720,8 @@ same_x_server (const char *name1, const char *name2)
9720{ 9720{
9721 int seen_colon = 0; 9721 int seen_colon = 0;
9722 const char *system_name = SSDATA (Vsystem_name); 9722 const char *system_name = SSDATA (Vsystem_name);
9723 int system_name_length = strlen (system_name); 9723 ptrdiff_t system_name_length = SBYTES (Vsystem_name);
9724 int length_until_period = 0; 9724 ptrdiff_t length_until_period = 0;
9725 9725
9726 while (system_name[length_until_period] != 0 9726 while (system_name[length_until_period] != 0
9727 && system_name[length_until_period] != '.') 9727 && system_name[length_until_period] != '.')