XSetWMIconName (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), &icon);
#endif /* not USE_X_TOOLKIT */
if (!NILP (f->icon_name)
- && icon.value != SDATA (f->icon_name))
+ && icon.value != (unsigned char *) SDATA (f->icon_name))
xfree (icon.value);
- if (text.value != SDATA (name))
+ if (text.value != (unsigned char *) SDATA (name))
xfree (text.value);
}
#else /* not HAVE_X11R4 */
XSetWMIconName (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), &icon);
#endif /* not USE_X_TOOLKIT */
if (!NILP (f->icon_name)
- && icon.value != SDATA (f->icon_name))
+ && icon.value != (unsigned char *) SDATA (f->icon_name))
xfree (icon.value);
- if (text.value != SDATA (name))
+ if (text.value != (unsigned char *) SDATA (name))
xfree (text.value);
}
#else /* not HAVE_X11R4 */