Commit f86c9830 authored by Paul Eggert's avatar Paul Eggert
Browse files

* xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow

concerns.
parent 6ae52848
2011-03-23 Paul Eggert <eggert@cs.ucla.edu> 2011-03-23 Paul Eggert <eggert@cs.ucla.edu>
   
* xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow
concerns.
* chartab.c (sub_char_table_ref_and_range): Redo to avoid overflow * chartab.c (sub_char_table_ref_and_range): Redo to avoid overflow
concerns. concerns.
   
...@@ -9121,7 +9121,7 @@ x_make_frame_visible (struct frame *f) ...@@ -9121,7 +9121,7 @@ x_make_frame_visible (struct frame *f)
unknown reason, the call to XtMapWidget is completely ignored. unknown reason, the call to XtMapWidget is completely ignored.
Mapping the widget a second time works. */ Mapping the widget a second time works. */
if (!FRAME_VISIBLE_P (f) && --retry_count > 0) if (!FRAME_VISIBLE_P (f) && --retry_count != 0)
goto retry; goto retry;
} }
} }
...@@ -9726,7 +9726,7 @@ same_x_server (const char *name1, const char *name2) ...@@ -9726,7 +9726,7 @@ same_x_server (const char *name1, const char *name2)
for (; *name1 != '\0' && *name1 == *name2; name1++, name2++) for (; *name1 != '\0' && *name1 == *name2; name1++, name2++)
{ {
if (*name1 == ':') if (*name1 == ':')
seen_colon++; seen_colon = 1;
if (seen_colon && *name1 == '.') if (seen_colon && *name1 == '.')
return 1; return 1;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment