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.
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);
/* 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)