Commit 9bda3520 authored by Paul Eggert's avatar Paul Eggert

* gtkutil.c (style_changed_cb): Avoid need for strlen.

parent ccd6111c
2011-06-20 Paul Eggert <eggert@cs.ucla.edu>
* gtkutil.c (style_changed_cb): Avoid need for strlen.
* font.c: Don't assume string length fits in int.
(font_parse_xlfd, font_parse_fcname, font_unparse_fcname):
Use ptrdiff_t, not int.
......
......@@ -1015,7 +1015,7 @@ style_changed_cb (GObject *go,
EVENT_INIT (event);
event.kind = CONFIG_CHANGED_EVENT;
event.frame_or_window = make_string (display_name, strlen (display_name));
event.frame_or_window = build_string (display_name);
/* Theme doesn't change often, so intern is called seldom. */
event.arg = intern ("theme-name");
kbd_buffer_store_event (&event);
......@@ -1024,7 +1024,7 @@ style_changed_cb (GObject *go,
/* If scroll bar width changed, we need set the new size on all frames
on this display. */
if (dpy)
if (dpy)
{
Lisp_Object rest, frame;
FOR_EACH_FRAME (rest, frame)
......
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